Show loading state instead of denying during auth load
cgen-5f5b953603414460b06b2177da17daad
This commit is contained in:
parent
3c09969601
commit
7d338caa0f
1 changed files with 17 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue