revert fb8e77bb68
Local Build and Deploy / deploy (push) Successful in 1m11s

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,31 +1,31 @@
import Link from "next/link";
import { Button } from "@/components/ui/button";
import { fetchAdminList } from "@/lib/admin-list";
import { PERMS } from "@/lib/permissions";
import { PollsTable } from "./polls-table";
import Link from 'next/link'
import { Button } from '@/components/ui/button'
import { fetchAdminList } from '@/lib/admin-list'
import { PERMS } from '@/lib/permissions'
import { PollsTable } from './polls-table'
export default async function PollsPage({
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.POLLS_VIEW,
model: "websitePoll",
searchFields: ["title"],
defaultSort: { createdAt: "desc" },
model: 'websitePoll',
searchFields: ['title'],
defaultSort: { createdAt: 'desc' },
mapRow: (p: {
id: number;
title: string;
status: string;
showResults: number;
multipleChoice: number;
startsAt: Date | null;
endsAt: Date | null;
createdAt: Date;
id: number
title: string
status: string
showResults: number
multipleChoice: number
startsAt: Date | null
endsAt: Date | null
createdAt: Date
}) => ({
id: p.id,
title: p.title,
@@ -39,7 +39,7 @@ export default async function PollsPage({
},
paramsPromise,
searchParams,
);
)
return (
<div className="space-y-6">
@@ -63,5 +63,5 @@ export default async function PollsPage({
}}
/>
</div>
);
)
}