Skip to content

Commit

Permalink
apply linting
Browse files Browse the repository at this point in the history
  • Loading branch information
naomatheus committed Aug 18, 2023
1 parent 828e6a2 commit 3deb5fb
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions src/pages/glossary.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default function Glossary({ data }) {
to top <ArrowIcon direction="up" />
</a>
{entries.map(x => (
< SectionContent
<SectionContent
key={x.term}
columns={[2, 10]}
withBackground
Expand All @@ -253,34 +253,26 @@ export default function Glossary({ data }) {
>
<h3>{x.term}</h3>
<div>
{
x.links ?
< LinkSection
node={x}
/>
: x.definition
}
{x.links ? <LinkSection node={x} /> : x.definition}
</div>
{
x.note && (
<p
data-cy="glossary-definition-note"
css={`
{x.note && (
<p
data-cy="glossary-definition-note"
css={`
font-style: italic;
margin-top: 1rem;
`}
>
Note: {x.note}
</p>
)
}
>
Note: {x.note}
</p>
)}
</SectionContent>
))}
</div>
)
})}
</PageBody>
</Layout >
</Layout>
)
}

Expand Down Expand Up @@ -309,7 +301,7 @@ const LinkSection = ({ node }) => {
)
}
// Otherwise, return the part as is
return part;
return part
})}
</div>
)
Expand Down Expand Up @@ -351,7 +343,7 @@ Glossary.propTypes = {
text: PropTypes.string,
url: PropTypes.string,
})
)
),
})
),
}).isRequired,
Expand Down

0 comments on commit 3deb5fb

Please sign in to comment.