console.logs entfernt
This commit is contained in:
@@ -32,8 +32,6 @@ export const PenaltyCountdown: React.FC<PenaltyCountdownProps> = ({ until }) =>
|
||||
return () => clearInterval(interval);
|
||||
}, [until, mounted]);
|
||||
|
||||
console.log("PenaltyCountdown until:", until, "timeLeft:", timeLeft);
|
||||
|
||||
if (!mounted) return null;
|
||||
|
||||
return (
|
||||
|
||||
@@ -70,7 +70,6 @@ export const ProfileForm = ({
|
||||
},
|
||||
resolver: zodResolver(schema),
|
||||
});
|
||||
console.log(user);
|
||||
return (
|
||||
<form
|
||||
className="card-body"
|
||||
|
||||
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