feat(events): refactor event and participant list entries to use schema validation
This commit is contained in:
parent
4a4d3b73d6
commit
8bbb7e4c85
6 changed files with 28 additions and 44 deletions
|
@ -2,14 +2,10 @@ import { Card } from '@/components/ui/card';
|
|||
import Logo from '@/components/misc/logo';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import Link from 'next/link';
|
||||
import zod from 'zod/v4';
|
||||
import { EventSchema } from '@/app/api/event/validation';
|
||||
|
||||
type EventListEntryProps = {
|
||||
title: string;
|
||||
id: string;
|
||||
start_time: string;
|
||||
end_time: string;
|
||||
location: string | null | undefined;
|
||||
};
|
||||
type EventListEntryProps = zod.output<typeof EventSchema>;
|
||||
|
||||
export default function EventListEntry({
|
||||
title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue