1
0
mirror of synced 2025-12-23 21:07:12 -05:00

fix anchors on /graphql/reference/objects (#29815)

This commit is contained in:
Peter Bengtsson
2022-08-10 23:11:53 +02:00
committed by GitHub
parent 7061516b37
commit f843f42945

View File

@@ -12,7 +12,7 @@ type Props = {
export function GraphqlItem({ item, heading, children, headingLevel = 2 }: Props) {
const lowerCaseName = item.name.toLowerCase()
return (
<>
<div>
{headingLevel === 2 && (
<h2 id={lowerCaseName}>
<LinkIconHeading slug={lowerCaseName} />
@@ -38,6 +38,6 @@ export function GraphqlItem({ item, heading, children, headingLevel = 2 }: Props
{heading && <h4>{heading}</h4>}
{children}
</div>
</>
</div>
)
}