website refactor
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { ChevronRight } from 'lucide-react';
|
||||
import { formatTime, formatDate } from '@/lib/utilities/time';
|
||||
|
||||
interface SidebarRaceItemProps {
|
||||
race: {
|
||||
@@ -26,7 +25,7 @@ export function SidebarRaceItem({ race, onClick, className }: SidebarRaceItemPro
|
||||
</div>
|
||||
<div className="min-w-0 flex-1">
|
||||
<p className="text-sm font-medium text-white truncate">{race.track}</p>
|
||||
<p className="text-xs text-gray-500">{formatTime(scheduledAtDate)}</p>
|
||||
<p className="text-xs text-gray-500">{scheduledAtDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}</p>
|
||||
</div>
|
||||
<ChevronRight className="w-4 h-4 text-gray-500" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user