completionId: cgen-e0186868ef1f49b297847127158a8df3
cgen-e0186868ef1f49b297847127158a8df3
This commit is contained in:
parent
3d75207389
commit
e28203cd19
1 changed files with 2 additions and 26 deletions
|
|
@ -579,8 +579,8 @@ export default function Dashboard() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Show loading while auth is resolving
|
// Show loading while auth is resolving OR profile is loading
|
||||||
if (authLoading || isLoading) {
|
if (authLoading || isLoading || (user && !profile)) {
|
||||||
return (
|
return (
|
||||||
<Layout hideFooter={true}>
|
<Layout hideFooter={true}>
|
||||||
<LoadingScreen
|
<LoadingScreen
|
||||||
|
|
@ -616,30 +616,6 @@ export default function Dashboard() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If user but no profile, show incomplete profile message
|
|
||||||
if (!profile) {
|
|
||||||
return (
|
|
||||||
<Layout>
|
|
||||||
<div className="min-h-screen bg-gray-900 flex items-center justify-center">
|
|
||||||
<div className="max-w-md text-center">
|
|
||||||
<h1 className="text-3xl font-bold text-white mb-4">
|
|
||||||
Complete Your Profile
|
|
||||||
</h1>
|
|
||||||
<p className="text-gray-400 mb-8">
|
|
||||||
Let's set up your profile to get started with AeThex
|
|
||||||
</p>
|
|
||||||
<button
|
|
||||||
onClick={() => navigate("/onboarding")}
|
|
||||||
className="px-6 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded-lg transition-colors"
|
|
||||||
>
|
|
||||||
Complete Profile
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Layout>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hide setup banner once onboarding is complete
|
// Hide setup banner once onboarding is complete
|
||||||
const showProfileSetup = !profileComplete;
|
const showProfileSetup = !profileComplete;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue