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

Co-authored-by: Loetwiek <lodommerholtcm@gmail.com>
pull/3776/head
Loetwiek 9 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)}> <Tooltip content={intl.formatMessage(messages.requestdate)}>
<CalendarIcon className="mr-1.5 h-5 w-5 flex-shrink-0" /> <CalendarIcon className="mr-1.5 h-5 w-5 flex-shrink-0" />
</Tooltip> </Tooltip>
<Tooltip
content={intl.formatDate(request.createdAt, {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
})}
>
<span> <span>
{intl.formatDate(request.createdAt, { {intl.formatDate(request.createdAt, {
year: 'numeric', year: 'numeric',
@ -217,6 +227,7 @@ const RequestBlock = ({ request, onUpdate }: RequestBlockProps) => {
day: 'numeric', day: 'numeric',
})} })}
</span> </span>
</Tooltip>
</div> </div>
</div> </div>
{(request.seasons ?? []).length > 0 && ( {(request.seasons ?? []).length > 0 && (

Loading…
Cancel
Save