added CRUD Customers

This commit is contained in:
2026-01-20 19:02:49 +01:00
parent 8e8fd70c8c
commit 3a8a6d1576
7 changed files with 1157 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import { redirect } from 'next/navigation';
import { getCurrentUser } from '@/lib/auth';
import DashboardLayout from '@/components/DashboardLayout';
import AdherentsTable from '@/components/AdherentsTable';
export default async function AdherentsPage() {
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">
Adhérents
</h1>
<p className="text-sm text-cgray mb-6">
Base de données des adhérents
</p>
<AdherentsTable />
</div>
</DashboardLayout>
);
}