mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 05:31:16 -05:00
Refactor: Implement site-wide unit conversion
This commit is contained in:
@@ -5,6 +5,7 @@ import { Badge } from '@/components/ui/badge';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Star, MapPin, Zap, Factory, Clock, Users, Calendar, Ruler, Gauge, Building } from 'lucide-react';
|
||||
import { SearchResult } from '@/hooks/useSearch';
|
||||
import { MeasurementDisplay } from '@/components/ui/measurement-display';
|
||||
|
||||
interface EnhancedSearchResultsProps {
|
||||
results: SearchResult[];
|
||||
@@ -94,13 +95,13 @@ export function EnhancedSearchResults({ results, loading, hasMore, onLoadMore }:
|
||||
{rideData?.max_height_meters && (
|
||||
<div className="flex items-center gap-1 text-xs text-muted-foreground">
|
||||
<Ruler className="w-3 h-3" />
|
||||
<span>{rideData.max_height_meters}m</span>
|
||||
<MeasurementDisplay value={rideData.max_height_meters} type="height" className="inline" />
|
||||
</div>
|
||||
)}
|
||||
{rideData?.max_speed_kmh && (
|
||||
<div className="flex items-center gap-1 text-xs text-muted-foreground">
|
||||
<Gauge className="w-3 h-3" />
|
||||
<span>{rideData.max_speed_kmh} km/h</span>
|
||||
<MeasurementDisplay value={rideData.max_speed_kmh} type="speed" className="inline" />
|
||||
</div>
|
||||
)}
|
||||
{rideData?.intensity_level && (
|
||||
|
||||
Reference in New Issue
Block a user