Don't hide children of datetime tooltip

This commit is contained in:
jahooma 2022-01-17 18:08:50 -06:00
parent ead441ce9f
commit 746a97c1df

View File

@ -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>
</>
) )
} }