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
|
@ -19,11 +19,10 @@ import {
|
|||
PopoverTrigger,
|
||||
} from '@/components/ui/popover';
|
||||
import { useGetApiSearchUser } from '@/generated/api/search/search';
|
||||
import zod from 'zod/v4';
|
||||
import { PublicUserSchema } from '@/app/api/user/validation';
|
||||
|
||||
interface User {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
type User = zod.output<typeof PublicUserSchema>;
|
||||
|
||||
export function UserSearchInput({
|
||||
addUserAction,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue