refactor: simplify parameter typing in EditEventPage function
This commit is contained in:
parent
b464e6b511
commit
382bece410
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 { Card, CardContent, CardHeader } from '@/components/ui/card';
|
||||||
import EventForm from '@/components/forms/event-form';
|
import EventForm from '@/components/forms/event-form';
|
||||||
|
|
||||||
interface EditEventPageProps {
|
export default async function EditEventPage({
|
||||||
params: {
|
params,
|
||||||
eventID: string;
|
}: {
|
||||||
};
|
params: { eventID: string };
|
||||||
}
|
}) {
|
||||||
|
|
||||||
export default async function EditEventPage({ params }: EditEventPageProps) {
|
|
||||||
const { eventID } = params;
|
const { eventID } = params;
|
||||||
return (
|
return (
|
||||||
<div className='flex flex-col items-center justify-center h-screen'>
|
<div className='flex flex-col items-center justify-center h-screen'>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue