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 <>
className="tooltip cursor-default hidden sm:inline-block" <span
data-tip={dayjs(time).format('MMM DD, YYYY hh:mm a z')} className="tooltip cursor-default hidden sm:inline-block"
> data-tip={dayjs(time).format('MMM DD, YYYY hh:mm a z')}
{props.children} >
</span> {props.children}
</span>
<span className="sm:hidden">{props.children}</span>
</>
) )
} }