completionId: cgen-b5c25adc5e6b4f0ea143c70be093d220

cgen-b5c25adc5e6b4f0ea143c70be093d220
This commit is contained in:
Builder.io 2025-11-10 23:28:04 +00:00
parent 0af71790a3
commit 61353f5bb0

View file

@ -589,44 +589,48 @@ export default function Dashboard() {
// If no user and auth is resolved, show login prompt (don't auto-redirect)
if (!user) {
return (
<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">
Welcome to AeThex
</h1>
<p className="text-gray-400 mb-8">
You need to be signed in to access the dashboard
</p>
<button
onClick={() => navigate("/login")}
className="px-6 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors"
>
Sign In
</button>
<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">
Welcome to AeThex
</h1>
<p className="text-gray-400 mb-8">
You need to be signed in to access the dashboard
</p>
<button
onClick={() => navigate("/login")}
className="px-6 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors"
>
Sign In
</button>
</div>
</div>
</div>
</Layout>
);
}
// If user but no profile, show incomplete profile message
if (!profile) {
return (
<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>
<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>
</div>
</Layout>
);
}