mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 22:31:12 -05:00
Refactor manufacturers page
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user