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
|
// Return early if not authenticated
|
||||||
const user = {
|
if (authLoading || !user || !profile) {
|
||||||
name: "Alex Thompson",
|
return (
|
||||||
role: "Game Developer",
|
<LoadingScreen
|
||||||
level: 15,
|
message="Loading your dashboard..."
|
||||||
xp: 2450,
|
showProgress={true}
|
||||||
nextLevelXp: 3000,
|
duration={2000}
|
||||||
avatar:
|
/>
|
||||||
"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100&h=100&fit=crop&crop=face",
|
);
|
||||||
joinDate: "March 2024",
|
}
|
||||||
streak: 12,
|
|
||||||
};
|
|
||||||
|
|
||||||
const stats = [
|
const stats = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue