fix: update parameter typing in Page function to use Promise
This commit is contained in:
parent
d6aa3ab7da
commit
194e329468
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue