fix: update parameter typing in Page function to use Promise
This commit is contained in:
parent
73004dc2d8
commit
8f21ab1d68
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({
|
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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue