refactor: simplify parameter typing in EditEventPage function
This commit is contained in:
parent
7a7b07ae8e
commit
d443bc0593
1 changed files with 5 additions and 7 deletions
|
@ -2,13 +2,11 @@ import { ThemePicker } from '@/components/misc/theme-picker';
|
|||
import { Card, CardContent, CardHeader } from '@/components/ui/card';
|
||||
import EventForm from '@/components/forms/event-form';
|
||||
|
||||
interface EditEventPageProps {
|
||||
params: {
|
||||
eventID: string;
|
||||
};
|
||||
}
|
||||
|
||||
export default async function EditEventPage({ params }: EditEventPageProps) {
|
||||
export default async function EditEventPage({
|
||||
params,
|
||||
}: {
|
||||
params: { eventID: string };
|
||||
}) {
|
||||
const { eventID } = params;
|
||||
return (
|
||||
<div className='flex flex-col items-center justify-center h-screen'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue