From a12f8211cb752a4e4864a0ec8faef1d52cc6b574 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 22 Mar 2025 05:34:40 +0000 Subject: [PATCH] Refactor: Apply consistent styling Apply consistent styling to the settings page, similar to other pages in the application. --- src/pages/Settings.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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