Added 4 Demo Users, with Coast emails, Hierarchy, roles etc.

This commit is contained in:
2026-06-18 13:13:29 +02:00
parent 3f839bc0fc
commit 5238b59140
22 changed files with 973 additions and 286 deletions
+19 -2
View File
@@ -1,7 +1,24 @@
"use client"
import { AppShell } from "@/components/layout/app-shell"
import { UserProvider } from "@/providers/user-provider"
import { UserProvider, useUser } from "@/providers/user-provider"
import { Loader2 } from "lucide-react"
function DashboardContent({ children }: { children: React.ReactNode }) {
const { user, loading } = useUser()
if (loading) {
return (
<div className="flex h-screen items-center justify-center">
<Loader2 className="h-8 w-8 animate-spin text-muted-foreground" />
</div>
)
}
if (!user) return null
return <AppShell>{children}</AppShell>
}
export default function DashboardLayout({
children,
@@ -10,7 +27,7 @@ export default function DashboardLayout({
}) {
return (
<UserProvider>
<AppShell>{children}</AppShell>
<DashboardContent>{children}</DashboardContent>
</UserProvider>
)
}