Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions app/_components/booking-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ const BookingItem = ({ booking }: BookingItemProps) => {
})}
</p>
<p className="text-2xl">{format(booking.date, "dd")}</p>
<p className="text-sm">{format(booking.date, "hh:mm")}</p>
<time
className="text-sm"
title={format(booking.date, "dd 'de' MMMM 'ás' hh:mm", { locale: ptBR})}
dateTime={booking.date.toISOString()}
>
{format(booking.date, "hh:mm")}
</time>
</div>
</CardContent>
</Card>
Expand Down Expand Up @@ -141,7 +147,13 @@ const BookingItem = ({ booking }: BookingItemProps) => {

<div className="flex justify-between">
<h3 className="text-gray-400 text-sm">Horário</h3>
<h4 className="text-sm">{format(booking.date, "hh:mm")}</h4>
<time
className="text-sm"
title={format(booking.date, "dd 'de' MMMM 'ás' hh:mm", { locale: ptBR})}
dateTime={booking.date.toISOString()}
>
{format(booking.date, "hh:mm")}
</time>
</div>

<div className="flex justify-between">
Expand Down