From 38fb16d845ae11adb30c00f73dbc9ac35b8d128f Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 12:36:00 +0000 Subject: [PATCH] Visual edit in Lovable Edited UI in Lovable --- src/pages/Settings.tsx | 85 +++++++++++------------------------------- 1 file changed, 22 insertions(+), 63 deletions(-) diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index 772a1c4..526bce0 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -1,4 +1,3 @@ - import React from 'react'; import { useNavigate } from 'react-router-dom'; import NavBar from '@/components/NavBar'; @@ -7,7 +6,6 @@ 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, @@ -23,40 +21,35 @@ const SettingsOption = ({ color?: string; disabled?: boolean; }) => { - return
+ return
-

{label}

- {description &&

{description}

} +

{label}

+ {description &&

{description}

}
; }; - const Settings = () => { const navigate = useNavigate(); - const { user, signOut } = useAuth(); - const { toast } = useToast(); - + const { + user, + signOut + } = useAuth(); + const { + toast + } = useToast(); const handleLogout = async () => { await signOut(); navigate('/login'); }; - const handleClick = (path: string) => { navigate(path); }; - return
{/* Header */} @@ -65,8 +58,7 @@ const Settings = () => { {/* User Profile */}
- {user ? ( -
+ {user ?
@@ -78,16 +70,13 @@ const Settings = () => { {user.email}

-
- ) : ( -
+
:

로그인 필요

계정에 로그인하세요

-
- )} +
}
@@ -100,50 +89,21 @@ const Settings = () => { {/* Settings Options */}

계정

- user ? navigate('/profile') : navigate('/login')} - /> - user ? navigate('/payment-methods') : navigate('/login')} - /> - user ? navigate('/notifications') : navigate('/login')} - /> + user ? navigate('/profile') : navigate('/login')} /> + user ? navigate('/payment-methods') : navigate('/login')} /> + user ? navigate('/notifications') : navigate('/login')} />

앱 설정

- navigate('/security-privacy')} - /> - navigate('/help-support')} - /> + navigate('/security-privacy')} /> + navigate('/help-support')} />
- navigate('/login')} - /> + navigate('/login')} />
@@ -154,5 +114,4 @@ const Settings = () => {
; }; - -export default Settings; +export default Settings; \ No newline at end of file