From 2ccfe8c48ad554bf0468fef071e2f52f3a719b6a Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Wed, 12 Nov 2025 03:40:29 +0000
Subject: [PATCH] Make entity names clickable
Update various components to wrap display names (parks, rides, manufacturers, designers, operators, etc.) in Link elements so they navigate to detail pages, aligning with the ParkDetail change. This includesRideDetail, RideListView, RideCreditCard, ParkDetail, and related imports, to enhance cohesion, interactivity, and browseability across the app.
---
src/components/rides/RideListView.tsx | 11 +++++++----
src/pages/RideDetail.tsx | 16 +++++++++++-----
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/src/components/rides/RideListView.tsx b/src/components/rides/RideListView.tsx
index 9a659c41..96039130 100644
--- a/src/components/rides/RideListView.tsx
+++ b/src/components/rides/RideListView.tsx
@@ -4,6 +4,7 @@ import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { Ride } from '@/types/database';
import { cn } from '@/lib/utils';
+import { Link } from 'react-router-dom';
interface RideListViewProps {
rides: Ride[];
@@ -115,10 +116,12 @@ export function RideListView({ rides, onRideClick }: RideListViewProps) {
{formatCategory(ride.category)}
{ride.manufacturer && (
-