File tree Expand file tree Collapse file tree 2 files changed +32
-18
lines changed Expand file tree Collapse file tree 2 files changed +32
-18
lines changed Original file line number Diff line number Diff line change 1+ import { Link } from '@tanstack/react-router'
12import {
23 BadgeCheck ,
34 Bell ,
@@ -81,17 +82,23 @@ export function NavUser({
8182 </ DropdownMenuGroup >
8283 < DropdownMenuSeparator />
8384 < DropdownMenuGroup >
84- < DropdownMenuItem >
85- < BadgeCheck />
86- Account
85+ < DropdownMenuItem asChild >
86+ < Link to = '/settings/account' >
87+ < BadgeCheck />
88+ Account
89+ </ Link >
8790 </ DropdownMenuItem >
88- < DropdownMenuItem >
89- < CreditCard />
90- Billing
91+ < DropdownMenuItem asChild >
92+ < Link to = '/settings' >
93+ < CreditCard />
94+ Billing
95+ </ Link >
9196 </ DropdownMenuItem >
92- < DropdownMenuItem >
93- < Bell />
94- Notifications
97+ < DropdownMenuItem asChild >
98+ < Link to = '/settings/notifications' >
99+ < Bell />
100+ Notifications
101+ </ Link >
95102 </ DropdownMenuItem >
96103 </ DropdownMenuGroup >
97104 < DropdownMenuSeparator />
Original file line number Diff line number Diff line change 1+ import { Link } from '@tanstack/react-router'
12import { Avatar , AvatarFallback , AvatarImage } from '@/components/ui/avatar'
23import { Button } from '@/components/ui/button'
34import {
@@ -33,17 +34,23 @@ export function ProfileDropdown() {
3334 </ DropdownMenuLabel >
3435 < DropdownMenuSeparator />
3536 < DropdownMenuGroup >
36- < DropdownMenuItem >
37- Profile
38- < DropdownMenuShortcut > ⇧⌘P</ DropdownMenuShortcut >
37+ < DropdownMenuItem asChild >
38+ < Link to = '/settings' >
39+ Profile
40+ < DropdownMenuShortcut > ⇧⌘P</ DropdownMenuShortcut >
41+ </ Link >
3942 </ DropdownMenuItem >
40- < DropdownMenuItem >
41- Billing
42- < DropdownMenuShortcut > ⌘B</ DropdownMenuShortcut >
43+ < DropdownMenuItem asChild >
44+ < Link to = '/settings' >
45+ Billing
46+ < DropdownMenuShortcut > ⌘B</ DropdownMenuShortcut >
47+ </ Link >
4348 </ DropdownMenuItem >
44- < DropdownMenuItem >
45- Settings
46- < DropdownMenuShortcut > ⌘S</ DropdownMenuShortcut >
49+ < DropdownMenuItem asChild >
50+ < Link to = '/settings' >
51+ Settings
52+ < DropdownMenuShortcut > ⌘S</ DropdownMenuShortcut >
53+ </ Link >
4754 </ DropdownMenuItem >
4855 < DropdownMenuItem > New Team</ DropdownMenuItem >
4956 </ DropdownMenuGroup >
You can’t perform that action at this time.
0 commit comments