console.logs entfernt

This commit is contained in:
PxlLoewe
2025-06-28 00:37:48 -07:00
parent 0569616bf2
commit 2445d88411
11 changed files with 30 additions and 14 deletions

View File

@@ -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 (

View File

@@ -70,7 +70,6 @@ export const ProfileForm = ({
},
resolver: zodResolver(schema),
});
console.log(user);
return (
<form
className="card-body"

View 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>[]
}
/>
);
}