Improved authentication; added fallbacks to 3D; cleaner dashboard charts
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react'
|
||||
import AuthGuard from '@/components/auth/AuthGuard'
|
||||
|
||||
export default function ProtectedLayout({
|
||||
children,
|
||||
@@ -6,8 +7,10 @@ export default function ProtectedLayout({
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
return (
|
||||
<div className="protected-layout">
|
||||
{children}
|
||||
</div>
|
||||
<AuthGuard>
|
||||
<div className="protected-layout">
|
||||
{children}
|
||||
</div>
|
||||
</AuthGuard>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user