diff --git a/src/components/manufacturers/ManufacturerCard.tsx b/src/components/manufacturers/ManufacturerCard.tsx index 5e5d41ed..c76aee7f 100644 --- a/src/components/manufacturers/ManufacturerCard.tsx +++ b/src/components/manufacturers/ManufacturerCard.tsx @@ -40,31 +40,41 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) { > {/* Logo/Image Section */}
-
- - {/* Company Type Badge */} -
- - {formatCompanyType(company.company_type)} - -
+ {(company.card_image_url || company.card_image_id) ? ( + {company.name} + ) : ( + <> +
+ + {/* Company Type Badge */} +
+ + {formatCompanyType(company.company_type)} + +
- {/* Logo Display */} -
- {company.logo_url ? ( -
- {`${company.name} + {/* Logo Display */} +
+ {company.logo_url ? ( +
+ {`${company.name} +
+ ) : ( +
+ {getCompanyIcon(company.company_type)} +
+ )}
- ) : ( -
- {getCompanyIcon(company.company_type)} -
- )} -
+ + )}
diff --git a/src/components/operators/OperatorCard.tsx b/src/components/operators/OperatorCard.tsx index 05344120..5a96d15a 100644 --- a/src/components/operators/OperatorCard.tsx +++ b/src/components/operators/OperatorCard.tsx @@ -27,31 +27,41 @@ const OperatorCard = ({ company }: OperatorCardProps) => { > {/* Logo/Image Section */}
-
- - {/* Park Operator Badge */} -
- - Park Operator - -
+ {(company.card_image_url || company.card_image_id) ? ( + {company.name} + ) : ( + <> +
+ + {/* Park Operator Badge */} +
+ + Park Operator + +
- {/* Logo Display */} -
- {company.logo_url ? ( -
- {`${company.name} + {/* Logo Display */} +
+ {company.logo_url ? ( +
+ {`${company.name} +
+ ) : ( +
+ {getCompanyIcon()} +
+ )}
- ) : ( -
- {getCompanyIcon()} -
- )} -
+ + )}
diff --git a/src/components/park-owners/ParkOwnerCard.tsx b/src/components/park-owners/ParkOwnerCard.tsx index caf85ab6..0b612438 100644 --- a/src/components/park-owners/ParkOwnerCard.tsx +++ b/src/components/park-owners/ParkOwnerCard.tsx @@ -27,31 +27,41 @@ const ParkOwnerCard = ({ company }: ParkOwnerCardProps) => { > {/* Logo/Image Section */}
-
- - {/* Property Owner Badge */} -
- - Property Owner - -
+ {(company.card_image_url || company.card_image_id) ? ( + {company.name} + ) : ( + <> +
+ + {/* Property Owner Badge */} +
+ + Property Owner + +
- {/* Logo Display */} -
- {company.logo_url ? ( -
- {`${company.name} + {/* Logo Display */} +
+ {company.logo_url ? ( +
+ {`${company.name} +
+ ) : ( +
+ {getCompanyIcon()} +
+ )}
- ) : ( -
- {getCompanyIcon()} -
- )} -
+ + )}
diff --git a/src/components/parks/ParkCard.tsx b/src/components/parks/ParkCard.tsx index 87e224c1..7cc4570f 100644 --- a/src/components/parks/ParkCard.tsx +++ b/src/components/parks/ParkCard.tsx @@ -46,9 +46,17 @@ export function ParkCard({ park }: ParkCardProps) {
{/* Image Placeholder with Gradient */}
- {park.card_image_url ? {park.name} :
+ {(park.card_image_url || park.card_image_id) ? ( + {park.name} + ) : ( +
{getParkTypeIcon(park.park_type)} -
} +
+ )} {/* Gradient Overlay */}
diff --git a/src/components/rides/RideCard.tsx b/src/components/rides/RideCard.tsx index 998085f5..431aca00 100644 --- a/src/components/rides/RideCard.tsx +++ b/src/components/rides/RideCard.tsx @@ -55,9 +55,9 @@ export function RideCard({ ride, showParkName = true, className, parkSlug }: Rid
{/* Image/Icon Section */}
- {(ride.card_image_url || ride.image_url) ? ( + {(ride.card_image_url || ride.card_image_id || ride.image_url) ? ( {ride.name} diff --git a/src/pages/DesignerDetail.tsx b/src/pages/DesignerDetail.tsx index 3fae89ed..a1f44798 100644 --- a/src/pages/DesignerDetail.tsx +++ b/src/pages/DesignerDetail.tsx @@ -133,7 +133,13 @@ export default function DesignerDetail() { {/* Hero Section */}
- {designer.logo_url ? ( + {(designer.banner_image_url || designer.banner_image_id) ? ( + {designer.name} + ) : designer.logo_url ? (
- {manufacturer.logo_url ? ( + {(manufacturer.banner_image_url || manufacturer.banner_image_id) ? ( + {manufacturer.name} + ) : manufacturer.logo_url ? (
- {operator.logo_url ? ( + {(operator.banner_image_url || operator.banner_image_id) ? ( + {operator.name} + ) : operator.logo_url ? (
- {owner.logo_url ? ( + {(owner.banner_image_url || owner.banner_image_id) ? ( + {owner.name} + ) : owner.logo_url ? (
- {(ride.banner_image_url || ride.card_image_url || ride.image_url) ? ( + {(ride.banner_image_url || ride.banner_image_id) ? ( {ride.name}