Refactor: Implement entity type safety plan

This commit is contained in:
gpt-engineer-app[bot]
2025-10-16 13:48:41 +00:00
parent 2106142150
commit 4efdeaa104
9 changed files with 34 additions and 38 deletions

View File

@@ -26,7 +26,7 @@ export default function OperatorDetail() {
const { slug } = useParams<{ slug: string }>();
const navigate = useNavigate();
const [operator, setOperator] = useState<Company | null>(null);
const [parks, setParks] = useState<any[]>([]);
const [parks, setParks] = useState<Park[]>([]);
const [loading, setLoading] = useState(true);
const [parksLoading, setParksLoading] = useState(true);
const [isEditModalOpen, setIsEditModalOpen] = useState(false);
@@ -427,7 +427,8 @@ export default function OperatorDetail() {
name: operator.name,
slug: operator.slug,
description: operator.description,
person_type: operator.person_type as any,
company_type: 'operator',
person_type: operator.person_type,
website_url: operator.website_url,
founded_year: operator.founded_year,
headquarters_location: operator.headquarters_location,