console.logs entfernt
This commit is contained in:
30
apps/hub/app/vatsim/page.tsx
Normal file
30
apps/hub/app/vatsim/page.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
"use client";
|
||||
import { User } from "@repo/db";
|
||||
import { ColumnDef } from "@tanstack/react-table";
|
||||
import { PaginatedTable } from "_components/PaginatedTable";
|
||||
|
||||
export default function () {
|
||||
return (
|
||||
<PaginatedTable
|
||||
searchFields={["firstname", "lastname", "vatsimCid"]}
|
||||
prismaModel={"user"}
|
||||
filter={{
|
||||
vatsimCid: {
|
||||
gt: 1,
|
||||
},
|
||||
}}
|
||||
leftOfSearch={<h1 className="text-2xl font-bold">Vatsim-Nutzer</h1>}
|
||||
columns={
|
||||
[
|
||||
{ header: "Vorname", accessorKey: "firstname" },
|
||||
{
|
||||
header: "Nachname",
|
||||
accessorKey: "lastname",
|
||||
cell: ({ row }) => row.original.lastname[0],
|
||||
},
|
||||
{ header: "Vatsim CID", accessorKey: "vatsimCid" },
|
||||
] as ColumnDef<User>[]
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user