revert style: clean up code with prettier and eslint
This commit is contained in:
remco committed 2026-07-12 21:02:03 +02:00
1 parent 27de078f54
commit e85e4d74ea
378 files changed
+20710 -22428

No files matched your search

+20 -20
View File
@@ -1,32 +1,32 @@
import Link from "next/link";
import { Button } from "@/components/ui/button";
import { fetchAdminList } from "@/lib/admin-list";
import { PERMS } from "@/lib/permissions";
import { EventsTable } from "./events-table";
import Link from 'next/link'
import { Button } from '@/components/ui/button'
import { fetchAdminList } from '@/lib/admin-list'
import { PERMS } from '@/lib/permissions'
import { EventsTable } from './events-table'
export default async function EventsPage({
params: paramsPromise,
searchParams,
}: {
params: Promise<{ locale: string }>;
searchParams: Promise<Record<string, string>>;
params: Promise<{ locale: string }>
searchParams: Promise<Record<string, string>>
}) {
const result = await fetchAdminList(
{
permission: PERMS.EVENTS_VIEW,
model: "websiteEvent",
searchFields: ["title"],
defaultSort: { startsAt: "desc" },
model: 'websiteEvent',
searchFields: ['title'],
defaultSort: { startsAt: 'desc' },
include: { type: { select: { name: true, color: true } } },
mapRow: (e: {
id: number;
title: string;
type: { name: string; color: string };
startsAt: Date;
endsAt: Date | null;
status: string;
hostUserId: number;
_count?: { registrations: number };
id: number
title: string
type: { name: string; color: string }
startsAt: Date
endsAt: Date | null
status: string
hostUserId: number
_count?: { registrations: number }
}) => ({
id: e.id,
title: e.title,
@@ -40,7 +40,7 @@ export default async function EventsPage({
},
paramsPromise,
searchParams,
);
)
return (
<div className="space-y-6">
@@ -64,5 +64,5 @@ export default async function EventsPage({
}}
/>
</div>
);
)
}