fix: update parameter typing in Page function to use Promise

This commit is contained in:
micha 2025-06-20 12:42:44 +02:00
parent 73004dc2d8
commit 8f21ab1d68

View file

@ -5,9 +5,9 @@ import EventForm from '@/components/forms/event-form';
export default async function Page({
params,
}: {
params: { eventID: string };
params: Promise<{ eventID: string }>;
}) {
const { eventID } = params;
const eventID = (await params).eventID;
return (
<div className='flex flex-col items-center justify-center h-screen'>
<div className='absolute top-4 right-4'>{<ThemePicker />}</div>