diff --git a/src/components/auth/AccountSwitcher.tsx b/src/components/auth/AccountSwitcher.tsx index dced5f8..a4ff8c4 100644 --- a/src/components/auth/AccountSwitcher.tsx +++ b/src/components/auth/AccountSwitcher.tsx @@ -1,7 +1,8 @@ // NOTE: This file is stable and usually should not be modified. // It is important that all functionality in this file is preserved, and should only be modified if explicitly requested. -import { ChevronDown, LogOut, UserIcon, UserPlus, Wallet, Wifi, X } from 'lucide-react'; +import { ChevronDown, LayoutDashboard, LogOut, UserIcon, UserPlus, Wallet, Wifi, X } from 'lucide-react'; +import { useNavigate } from 'react-router-dom'; import { DropdownMenu, DropdownMenuContent, @@ -31,6 +32,7 @@ interface AccountSwitcherProps { export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) { const { currentUser, otherUsers, setLogin, removeLogin } = useLoggedInAccounts(); + const navigate = useNavigate(); if (!currentUser) return null; @@ -71,6 +73,13 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) { ))} + navigate('/dashboard')} + > + + Dashboard +