mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 22:11:12 -05:00
Refactor: Implement cleanup plan
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user