Don't hide children of datetime tooltip
This commit is contained in:
parent
ead441ce9f
commit
746a97c1df
|
@ -13,11 +13,14 @@ export function DateTimeTooltip(props: {
|
||||||
}) {
|
}) {
|
||||||
const { time } = props
|
const { time } = props
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<span
|
<span
|
||||||
className="tooltip cursor-default hidden sm:inline-block"
|
className="tooltip cursor-default hidden sm:inline-block"
|
||||||
data-tip={dayjs(time).format('MMM DD, YYYY hh:mm a z')}
|
data-tip={dayjs(time).format('MMM DD, YYYY hh:mm a z')}
|
||||||
>
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
</span>
|
</span>
|
||||||
|
<span className="sm:hidden">{props.children}</span>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user