fixed styles, improved PaginatedTableStyling

This commit is contained in:
PxlLoewe
2025-02-22 23:20:46 +01:00
parent 52888787cf
commit cd5c57beba
11 changed files with 87 additions and 69 deletions

View File

@@ -1,34 +1,36 @@
import { User2 } from "lucide-react";
import { PaginatedTable } from "../../../_components/PaginatedTable";
import { User2 } from 'lucide-react';
import { PaginatedTable } from '../../../_components/PaginatedTable';
export default async () => {
return (
<>
<p className="text-2xl font-semibold text-left flex items-center gap-2">
<User2 className="w-5 h-5" /> Benutzer
</p>
<PaginatedTable
showEditButton
prismaModel="user"
searchFields={["publicId", "firstname", "lastname", "email"]}
searchFields={['publicId', 'firstname', 'lastname', 'email']}
columns={[
{
header: "ID",
accessorKey: "publicId",
header: 'ID',
accessorKey: 'publicId',
},
{
header: "Vorname",
accessorKey: "firstname",
header: 'Vorname',
accessorKey: 'firstname',
},
{
header: "Nachname",
accessorKey: "lastname",
header: 'Nachname',
accessorKey: 'lastname',
},
{
header: "Email",
accessorKey: "email",
header: 'Email',
accessorKey: 'email',
},
]}
leftOfSearch={
<p className="text-2xl font-semibold text-left flex items-center gap-2">
<User2 className="w-5 h-5" /> Benutzer
</p>
}
/>
</>
);