We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b6dca6 + c074dde commit 0c7c97fCopy full SHA for 0c7c97f
1 file changed
src/app/dashboard/layout.tsx
@@ -0,0 +1,11 @@
1
+import type { ReactNode } from 'react'
2
+
3
+import ApiCodeGuard from '@/components/auth/ApiCodeGuard'
4
5
+export default function DashboardLayout({ children }: { children: ReactNode }) {
6
+ return (
7
+ <ApiCodeGuard requiredRole="CORE" nextOverride="/dashboard">
8
+ {children}
9
+ </ApiCodeGuard>
10
+ )
11
+}
0 commit comments