Compare commits

...

2 Commits

Author SHA1 Message Date
James Grugett
c5a2990843 test 2022-02-22 15:09:47 -06:00
James Grugett
f93412af4c Test clientside re-render 2022-02-22 15:05:50 -06:00

View File

@ -2,9 +2,10 @@ 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)
// dayjs.extend(timezone)
dayjs.extend(advanced)
export function DateTimeTooltip(props: {
@ -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