Refactor: Implement cleanup plan

This commit is contained in:
gpt-engineer-app[bot]
2025-10-03 13:54:27 +00:00
parent c51c848da4
commit f061bb9d5f
9 changed files with 49 additions and 155 deletions

View File

@@ -30,7 +30,7 @@ import {
} from 'lucide-react';
import { ReviewsSection } from '@/components/reviews/ReviewsSection';
import { MeasurementDisplay } from '@/components/ui/measurement-display';
import { RidePhotoGallery } from '@/components/rides/RidePhotoGallery';
import { EntityPhotoGallery } from '@/components/upload/EntityPhotoGallery';
import { RatingDistribution } from '@/components/rides/RatingDistribution';
import { RideHighlights } from '@/components/rides/RideHighlights';
import { SimilarRides } from '@/components/rides/SimilarRides';
@@ -395,8 +395,8 @@ export default function RideDetail() {
</Card>
)}
{ride.former_names && ride.former_names.length > 0 && (
<FormerNames formerNames={ride.former_names} currentName={ride.name} />
{ride.name_history && ride.name_history.length > 0 && (
<FormerNames nameHistory={ride.name_history} currentName={ride.name} />
)}
<SimilarRides
@@ -638,10 +638,11 @@ export default function RideDetail() {
</TabsContent>
<TabsContent value="photos" className="mt-6">
<RidePhotoGallery
rideId={ride.id}
rideName={ride.name}
parkId={(ride as any).currentParkId}
<EntityPhotoGallery
entityId={ride.id}
entityType="ride"
entityName={ride.name}
parentId={(ride as any).currentParkId}
/>
</TabsContent>
</Tabs>