feat: add auth guards to protected routes and extend requireAuth coverage
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { AuthGuard } from "@/components/auth-guard"
|
||||
import { DashboardSidebar } from "@/components/dashboard-sidebar"
|
||||
import { Header } from "@/components/header"
|
||||
|
||||
@@ -9,7 +10,9 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
|
||||
<div className="hidden md:block">
|
||||
<DashboardSidebar />
|
||||
</div>
|
||||
<main className="flex-1 p-6">{children}</main>
|
||||
<main className="flex-1 p-6">
|
||||
<AuthGuard>{children}</AuthGuard>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user