Skip to content

Commit

Permalink
fix: don't show popular tags when browsing for a specific tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed Aug 14, 2024
1 parent 3197ccf commit 2908a0d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions client/src/components/Releases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,20 @@ const Releases = () => {
`}
>
{" "}
<SectionHeader>
<WidthContainer variant="big">
<h2 className="h5 section-header__heading">Popular Tags</h2>
<div
className={css`
margin: 0 0.5rem;
`}
>
<TrackGroupPills tags={tags?.results.map((tag) => tag.tag)} />
</div>
</WidthContainer>
</SectionHeader>
{!tag && (
<SectionHeader>
<WidthContainer variant="big">
<h2 className="h5 section-header__heading">Popular Tags</h2>
<div
className={css`
margin: 0 0.5rem;
`}
>
<TrackGroupPills tags={tags?.results.map((tag) => tag.tag)} />
</div>
</WidthContainer>
</SectionHeader>
)}
<SectionHeader>
<WidthContainer variant="big" justify="center">
<h1 className="h5 section-header__heading" id={headingId}>
Expand Down

0 comments on commit 2908a0d

Please sign in to comment.