feat(tooltip): add tooltip to display exact time on date hover (#3773)

Co-authored-by: Loetwiek <lodommerholtcm@gmail.com>
pull/3776/head
Loetwiek 10 months ago committed by GitHub
parent 2dd00481c2
commit d28e13187b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -210,6 +210,16 @@ const RequestBlock = ({ request, onUpdate }: RequestBlockProps) => {
<Tooltip content={intl.formatMessage(messages.requestdate)}>
<CalendarIcon className="mr-1.5 h-5 w-5 flex-shrink-0" />
</Tooltip>
<Tooltip
content={intl.formatDate(request.createdAt, {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
})}
>
<span>
{intl.formatDate(request.createdAt, {
year: 'numeric',
@ -217,6 +227,7 @@ const RequestBlock = ({ request, onUpdate }: RequestBlockProps) => {
day: 'numeric',
})}
</span>
</Tooltip>
</div>
</div>
{(request.seasons ?? []).length > 0 && (

Loading…
Cancel
Save