Skip to content

Commit

Permalink
feat(ArticleDropdown): navigate directly to top category
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhender committed Feb 9, 2024
1 parent 0cc6b9d commit eb94e9b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/components/ArticlesDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ export const ArticlesDropdown = ({toc, categories}: ArticlesDropdownProps) => (
/>
))}

<Button action="/tags" className="dropdown-button bordered grey dropdown-button-label">
Browse all categories
<Button
action={`/tags/display/${categories[0].name}`}
className="dropdown-button bordered grey dropdown-button-label"
>
Browse all categories
</Button>
</div>
</div>
Expand Down

0 comments on commit eb94e9b

Please sign in to comment.