diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index bff1fd8..ab69403 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -7,6 +7,7 @@ import { User, CreditCard, Bell, Lock, HelpCircle, LogOut, ChevronRight } from ' import { cn } from '@/lib/utils'; import { useAuth } from '@/contexts/auth'; import { useToast } from '@/hooks/useToast.wrapper'; + const SettingsOption = ({ icon: Icon, label, @@ -35,6 +36,7 @@ const SettingsOption = ({ ; }; + const Settings = () => { const navigate = useNavigate(); const { @@ -44,18 +46,21 @@ const Settings = () => { const { toast } = useToast(); + const handleLogout = async () => { await signOut(); navigate('/login'); }; + const handleClick = (path: string) => { navigate(path); }; + return