Update Dashboard state and authentication logic
cgen-1c69bcc5f56a4438a88b436447d71b20
This commit is contained in:
parent
6267f3d72c
commit
5e60520adc
1 changed files with 10 additions and 1 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue