Skip to content

Commit

Permalink
fix(sidebar): make button links to use aria router
Browse files Browse the repository at this point in the history
  • Loading branch information
sapkra committed Oct 16, 2024
1 parent 90d3ec3 commit c80d35d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fragments/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
Link,
type AvatarProps,
type DropdownItemProps,
type DropdownProps,
Expand Down Expand Up @@ -131,7 +132,7 @@ const renderItems = (item: SidebarProps['items'][number], options: { layout: Sid
color={options.activeNav?.link === navItem.link ? 'primary' : 'default'}
variant="light"
size="lg"
as="a"
as={Link}
href={navItem.link}
isIconOnly
>
Expand Down Expand Up @@ -296,7 +297,7 @@ export const Sidebar: React.FC<SidebarProps> = ({ items, layout = 'expanded', au
offset={10}
>
<Button
as="a"
as={Link}
radius="md"
className="h-12 flex-1"
variant="light"
Expand Down

0 comments on commit c80d35d

Please sign in to comment.