mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 13:51:13 -05:00
Refactor unit conversion usage
This commit is contained in:
@@ -5,6 +5,7 @@ import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Star, TrendingUp, Plus, MapPin, Clock, Zap } from 'lucide-react';
|
||||
import { MeasurementDisplay } from '@/components/ui/measurement-display';
|
||||
import { Park, Ride } from '@/types/database';
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
|
||||
@@ -172,14 +173,16 @@ export function ContentTabs() {
|
||||
{ride.max_speed_kmh && (
|
||||
<div className="flex items-center gap-1">
|
||||
<Zap className="w-3 h-3 text-primary" />
|
||||
<span className="text-primary font-medium">{ride.max_speed_kmh}</span>
|
||||
<span className="text-muted-foreground text-xs">km/h</span>
|
||||
<span className="text-primary font-medium">
|
||||
<MeasurementDisplay value={ride.max_speed_kmh} type="speed" />
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
{ride.max_height_meters && (
|
||||
<div className="flex items-center gap-1">
|
||||
<span className="text-accent font-medium">{ride.max_height_meters}</span>
|
||||
<span className="text-muted-foreground text-xs">m</span>
|
||||
<span className="text-accent font-medium">
|
||||
<MeasurementDisplay value={ride.max_height_meters} type="distance" />
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
{ride.duration_seconds && (
|
||||
|
||||
Reference in New Issue
Block a user