Refactor manufacturers page

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 13:53:05 +00:00
parent 706088d454
commit 5407763162
4 changed files with 152 additions and 35 deletions

View File

@@ -13,7 +13,8 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
const navigate = useNavigate();
const handleClick = () => {
navigate(`/manufacturers/${company.slug}/`);
const basePath = company.company_type === 'designer' ? '/designers' : '/manufacturers';
navigate(`${basePath}/${company.slug}/`);
};
const getCompanyIcon = (type: string) => {