Added Calendar Page
This commit is contained in:
27
app/dashboard/calendrier/page.tsx
Normal file
27
app/dashboard/calendrier/page.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { redirect } from 'next/navigation';
|
||||
import { getCurrentUser } from '@/lib/auth';
|
||||
import DashboardLayout from '@/components/DashboardLayout';
|
||||
import CalendrierPageContent from '@/components/CalendrierPageContent';
|
||||
|
||||
export default async function CalendrierPage() {
|
||||
const user = await getCurrentUser();
|
||||
|
||||
if (!user) {
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
return (
|
||||
<DashboardLayout user={user}>
|
||||
<div className="p-8">
|
||||
<h1 className="text-3xl font-semibold text-cblack mb-2">
|
||||
Calendrier
|
||||
</h1>
|
||||
<p className="text-sm text-cgray mb-8">
|
||||
Gestion des trajets et planning des chauffeurs
|
||||
</p>
|
||||
|
||||
<CalendrierPageContent />
|
||||
</div>
|
||||
</DashboardLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user