From 760047bf7aa99715c8a68d7300c4afe22a6d740c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:57:51 +0000 Subject: [PATCH] Refactor ManufacturerCard button --- .../manufacturers/ManufacturerCard.tsx | 41 ++++++++++++------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/src/components/manufacturers/ManufacturerCard.tsx b/src/components/manufacturers/ManufacturerCard.tsx index 23435cab..44298644 100644 --- a/src/components/manufacturers/ManufacturerCard.tsx +++ b/src/components/manufacturers/ManufacturerCard.tsx @@ -108,21 +108,32 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) { )} - {/* Action Button */} - {company.website_url && ( - - )} + {/* Stats Display */} +
+ {(company as any).ride_count > 0 && ( +
+ + {(company as any).ride_count} + rides +
+ )} + + {(company as any).coaster_count > 0 && ( +
+ + {(company as any).coaster_count} + coasters +
+ )} + + {(company as any).model_count > 0 && ( +
+ + {(company as any).model_count} + models +
+ )} +
);