From 5e60520adcbb69851bae2c3839707f12ef5e4c92 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 6 Aug 2025 03:17:11 +0000 Subject: [PATCH] Update Dashboard state and authentication logic cgen-1c69bcc5f56a4438a88b436447d71b20 --- client/pages/Dashboard.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index 064a8059..35fd76f0 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -39,8 +39,17 @@ import { } from "lucide-react"; export default function Dashboard() { + const navigate = useNavigate(); + const { user, profile, loading: authLoading } = useAuth(); const [isLoading, setIsLoading] = useState(true); - const [activeProjects, setActiveProjects] = useState(3); + const [projects, setProjects] = useState([]); + const [achievements, setAchievements] = useState([]); + const [stats, setStats] = useState({ + activeProjects: 0, + completedTasks: 0, + teamMembers: 0, + performanceScore: '0%' + }); useEffect(() => { const timer = setTimeout(() => {