From f193768eb2e6e1ad38e00b5560aa0ed89d03583b Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 27 Sep 2025 21:51:22 +0000 Subject: [PATCH] Add imports and settings section with save to Dashboard cgen-ed1334db17f64eea99ee7cb70b9fcb5e --- client/pages/Dashboard.tsx | 98 +++++++++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 2 deletions(-) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index ce7481b2..1d609263 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -16,6 +16,11 @@ import { CardTitle, } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { Textarea } from "@/components/ui/textarea"; +import { Switch } from "@/components/ui/switch"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import LoadingScreen from "@/components/LoadingScreen"; import { Link } from "react-router-dom"; import { @@ -43,7 +48,7 @@ import { export default function Dashboard() { const navigate = useNavigate(); - const { user, profile, loading: authLoading } = useAuth(); + const { user, profile, loading: authLoading, updateProfile } = useAuth(); const [isLoading, setIsLoading] = useState(true); const [projects, setProjects] = useState([]); const [achievements, setAchievements] = useState([]); @@ -338,7 +343,12 @@ export default function Dashboard() { Notifications - @@ -464,6 +474,90 @@ export default function Dashboard() { })} + {/* Settings Section */} + + + Account Settings + Manage your profile, notifications, and privacy + + + + + Profile + Notifications + Privacy + + + +
+
+ + updateProfile({ full_name: e.target.value } as any)} /> +
+
+ + updateProfile({ location: e.target.value } as any)} /> +
+
+ +