Remove duplicate user declaration (old mock data)
cgen-6a05577b5c9b4bfcb854912093b0200d
This commit is contained in:
parent
0d1f585957
commit
7b1fd9b63a
1 changed files with 10 additions and 12 deletions
|
|
@ -121,18 +121,16 @@ export default function Dashboard() {
|
|||
}
|
||||
};
|
||||
|
||||
// Mock user data
|
||||
const user = {
|
||||
name: "Alex Thompson",
|
||||
role: "Game Developer",
|
||||
level: 15,
|
||||
xp: 2450,
|
||||
nextLevelXp: 3000,
|
||||
avatar:
|
||||
"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100&h=100&fit=crop&crop=face",
|
||||
joinDate: "March 2024",
|
||||
streak: 12,
|
||||
};
|
||||
// Return early if not authenticated
|
||||
if (authLoading || !user || !profile) {
|
||||
return (
|
||||
<LoadingScreen
|
||||
message="Loading your dashboard..."
|
||||
showProgress={true}
|
||||
duration={2000}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
const stats = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue