mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 08:51:13 -05:00
Fix TypeScript build errors
This commit is contained in:
@@ -23,28 +23,6 @@ import { useNavigate } from 'react-router-dom';
|
||||
|
||||
type DesignerFormData = z.infer<typeof entitySchemas.designer>;
|
||||
|
||||
// Input type for the form (before transformation)
|
||||
type DesignerFormInput = {
|
||||
name: string;
|
||||
slug: string;
|
||||
description?: string;
|
||||
person_type: 'company' | 'individual' | 'firm' | 'organization';
|
||||
website_url?: string;
|
||||
founded_year?: string;
|
||||
headquarters_location?: string;
|
||||
images?: {
|
||||
uploaded: Array<{
|
||||
url: string;
|
||||
cloudflare_id?: string;
|
||||
file?: any;
|
||||
isLocal?: boolean;
|
||||
caption?: string;
|
||||
}>;
|
||||
banner_assignment?: number | null;
|
||||
card_assignment?: number | null;
|
||||
};
|
||||
};
|
||||
|
||||
interface DesignerFormProps {
|
||||
onSubmit: (data: DesignerFormData) => void;
|
||||
onCancel: () => void;
|
||||
@@ -68,7 +46,7 @@ export function DesignerForm({ onSubmit, onCancel, initialData }: DesignerFormPr
|
||||
setValue,
|
||||
watch,
|
||||
formState: { errors }
|
||||
} = useForm<DesignerFormInput>({
|
||||
} = useForm({
|
||||
resolver: zodResolver(entitySchemas.designer),
|
||||
defaultValues: {
|
||||
name: initialData?.name || '',
|
||||
|
||||
Reference in New Issue
Block a user