fix issues
This commit is contained in:
24
apps/website/app/profile/layout.tsx
Normal file
24
apps/website/app/profile/layout.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
'use client';
|
||||
|
||||
import { AuthGuard } from '@/lib/gateways/AuthGuard';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
interface ProfileLayoutProps {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Profile Layout
|
||||
*
|
||||
* Provides authentication protection for all profile-related routes.
|
||||
* Wraps children with AuthGuard to ensure only authenticated users can access.
|
||||
*/
|
||||
export default function ProfileLayout({ children }: ProfileLayoutProps) {
|
||||
return (
|
||||
<AuthGuard redirectPath="/auth/login">
|
||||
<div className="min-h-screen bg-deep-graphite">
|
||||
{children}
|
||||
</div>
|
||||
</AuthGuard>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user