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({ export default async function Page({
params, params,
}: { }: {
params: { eventID: string }; params: Promise<{ eventID: string }>;
}) { }) {
const { eventID } = params; const eventID = (await params).eventID;
return ( return (
<div className='flex flex-col items-center justify-center h-screen'> <div className='flex flex-col items-center justify-center h-screen'>
<div className='absolute top-4 right-4'>{<ThemePicker />}</div> <div className='absolute top-4 right-4'>{<ThemePicker />}</div>