Skip to content

Commit

Permalink
feat: navigation link
Browse files Browse the repository at this point in the history
  • Loading branch information
rakrisi committed Dec 25, 2024
1 parent a1075bd commit 25dae81
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/components/layout/nav-user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
SidebarMenuItem,
useSidebar,
} from '@/components/ui/sidebar'
import { Link } from '@tanstack/react-router'

export function NavUser({
user,
Expand Down Expand Up @@ -81,17 +82,23 @@ export function NavUser({
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuGroup>
<DropdownMenuItem>
<DropdownMenuItem asChild>
<Link to='/settings/account'>
<BadgeCheck />
Account
</Link>
</DropdownMenuItem>
<DropdownMenuItem>
<DropdownMenuItem asChild>
<Link to='/settings/billing'>
<CreditCard />
Billing
</Link>
</DropdownMenuItem>
<DropdownMenuItem>
<DropdownMenuItem asChild>
<Link to='/settings/notifications'>
<Bell />
Notifications
</Link>
</DropdownMenuItem>
</DropdownMenuGroup>
<DropdownMenuSeparator />
Expand Down
9 changes: 8 additions & 1 deletion src/components/profile-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
DropdownMenuShortcut,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu'
import { Link } from '@tanstack/react-router'

export function ProfileDropdown() {
return (
Expand All @@ -34,15 +35,21 @@ export function ProfileDropdown() {
<DropdownMenuSeparator />
<DropdownMenuGroup>
<DropdownMenuItem>
Profile
<Link to='/settings'>
Profile
</Link>
<DropdownMenuShortcut>⇧⌘P</DropdownMenuShortcut>
</DropdownMenuItem>
<DropdownMenuItem>
<Link to='/settings/billing'>
Billing
</Link>
<DropdownMenuShortcut>⌘B</DropdownMenuShortcut>
</DropdownMenuItem>
<DropdownMenuItem>
<Link to='/settings'>
Settings
</Link>
<DropdownMenuShortcut>⌘S</DropdownMenuShortcut>
</DropdownMenuItem>
<DropdownMenuItem>New Team</DropdownMenuItem>
Expand Down

0 comments on commit 25dae81

Please sign in to comment.