Spaces:
Paused
Paused
CBV01 commited on
Commit ·
c5f08c6
1
Parent(s): 41a083c
fix: add missing use client + React imports to page.tsx (fixes Vercel build error)
Browse files
frontend/src/app/page.tsx
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import { Megaphone, Shield, TrendingUp, Activity, Zap } from 'lucide-react';
|
| 2 |
|
|
|
|
| 3 |
export default function Dashboard() {
|
| 4 |
const [stats, setStats] = useState<any>(null);
|
| 5 |
const [loading, setLoading] = useState(true);
|
|
|
|
| 1 |
+
"use client";
|
| 2 |
+
|
| 3 |
+
import { useState, useEffect } from 'react';
|
| 4 |
+
import Link from 'next/link';
|
| 5 |
+
import { apiFetch } from '@/lib/auth';
|
| 6 |
import { Megaphone, Shield, TrendingUp, Activity, Zap } from 'lucide-react';
|
| 7 |
|
| 8 |
+
|
| 9 |
export default function Dashboard() {
|
| 10 |
const [stats, setStats] = useState<any>(null);
|
| 11 |
const [loading, setLoading] = useState(true);
|