Show loading state instead of denying during auth load

cgen-5f5b953603414460b06b2177da17daad
This commit is contained in:
Builder.io 2025-10-19 05:05:14 +00:00
parent 3c09969601
commit 7d338caa0f

View file

@ -83,6 +83,23 @@ export default function ProjectsAdmin() {
}
};
if (authLoading) {
return (
<Layout>
<div className="min-h-screen bg-aethex-gradient py-12">
<section className="container mx-auto max-w-3xl px-4">
<Card className="bg-card/60 border-border/40 backdrop-blur">
<CardHeader>
<CardTitle>Loading</CardTitle>
<CardDescription>Checking access</CardDescription>
</CardHeader>
</Card>
</section>
</div>
</Layout>
);
}
if (!isOwner) {
return (
<Layout>