From 462741c3bd16fbf5326e39ed91318b0654dd2c02 Mon Sep 17 00:00:00 2001 From: highperfocused Date: Sun, 28 Dec 2025 14:43:12 +0100 Subject: [PATCH] feat: add dashboard navigation to AccountSwitcher component --- src/components/auth/AccountSwitcher.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 +