Added Pro Page
This commit is contained in:
27
app/dashboard/chauffeurs/page.tsx
Normal file
27
app/dashboard/chauffeurs/page.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { redirect } from 'next/navigation';
|
||||
import { getCurrentUser } from '@/lib/auth';
|
||||
import DashboardLayout from '@/components/DashboardLayout';
|
||||
import ChauffeursTable from '@/components/ChauffeursTable';
|
||||
|
||||
export default async function ChauffeursPage() {
|
||||
const user = await getCurrentUser();
|
||||
|
||||
if (!user) {
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
return (
|
||||
<DashboardLayout user={user}>
|
||||
<div className="p-6">
|
||||
<h1 className="text-3xl font-semibold text-cblack mb-1">
|
||||
Chauffeurs
|
||||
</h1>
|
||||
<p className="text-sm text-cgray mb-6">
|
||||
Base de données des chauffeurs
|
||||
</p>
|
||||
|
||||
<ChauffeursTable />
|
||||
</div>
|
||||
</DashboardLayout>
|
||||
);
|
||||
}
|
||||
27
app/dashboard/univers-pro/page.tsx
Normal file
27
app/dashboard/univers-pro/page.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { redirect } from 'next/navigation';
|
||||
import { getCurrentUser } from '@/lib/auth';
|
||||
import DashboardLayout from '@/components/DashboardLayout';
|
||||
import UniversProTable from '@/components/UniversProTable';
|
||||
|
||||
export default async function UniversProPage() {
|
||||
const user = await getCurrentUser();
|
||||
|
||||
if (!user) {
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
return (
|
||||
<DashboardLayout user={user}>
|
||||
<div className="p-6">
|
||||
<h1 className="text-3xl font-semibold text-cblack mb-1">
|
||||
Univers Pro
|
||||
</h1>
|
||||
<p className="text-sm text-cgray mb-6">
|
||||
Base de données des contacts professionnels
|
||||
</p>
|
||||
|
||||
<UniversProTable />
|
||||
</div>
|
||||
</DashboardLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user