Test clientside re-render

This commit is contained in:
James Grugett 2022-02-22 15:05:50 -06:00
parent 72d0797b3f
commit f93412af4c

View File

@ -2,6 +2,7 @@ import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
import timezone from 'dayjs/plugin/timezone'
import advanced from 'dayjs/plugin/advancedFormat'
import { useEffect, useState } from 'react'
dayjs.extend(utc)
dayjs.extend(timezone)
@ -17,6 +18,11 @@ export function DateTimeTooltip(props: {
const formattedTime = dayjs(time).format('MMM DD, YYYY hh:mm a')
const toolTip = text ? `${text} ${formattedTime}` : formattedTime
const [_, setIt] = useState()
useEffect(() => {
setIt(undefined)
}, [])
return (
<>
<span