mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 19:51:13 -05:00
Fix TypeScript build errors
This commit is contained in:
@@ -23,30 +23,6 @@ import { useNavigate } from 'react-router-dom';
|
||||
|
||||
type OperatorFormData = z.infer<typeof entitySchemas.operator>;
|
||||
|
||||
// Input type for the form (before transformation)
|
||||
type OperatorFormInput = {
|
||||
name: string;
|
||||
slug: string;
|
||||
description?: string;
|
||||
person_type: 'company' | 'individual' | 'firm' | 'organization';
|
||||
website_url?: string;
|
||||
founded_year?: string;
|
||||
founded_date?: string;
|
||||
founded_date_precision?: 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 OperatorFormProps {
|
||||
onSubmit: (data: OperatorFormData) => void;
|
||||
onCancel: () => void;
|
||||
@@ -70,7 +46,7 @@ export function OperatorForm({ onSubmit, onCancel, initialData }: OperatorFormPr
|
||||
setValue,
|
||||
watch,
|
||||
formState: { errors }
|
||||
} = useForm<OperatorFormInput>({
|
||||
} = useForm({
|
||||
resolver: zodResolver(entitySchemas.operator),
|
||||
defaultValues: {
|
||||
name: initialData?.name || '',
|
||||
|
||||
Reference in New Issue
Block a user