Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c5a2990843 | ||
|
f93412af4c |
|
@ -2,9 +2,10 @@ import dayjs from 'dayjs'
|
||||||
import utc from 'dayjs/plugin/utc'
|
import utc from 'dayjs/plugin/utc'
|
||||||
import timezone from 'dayjs/plugin/timezone'
|
import timezone from 'dayjs/plugin/timezone'
|
||||||
import advanced from 'dayjs/plugin/advancedFormat'
|
import advanced from 'dayjs/plugin/advancedFormat'
|
||||||
|
import { useEffect, useState } from 'react'
|
||||||
|
|
||||||
dayjs.extend(utc)
|
dayjs.extend(utc)
|
||||||
dayjs.extend(timezone)
|
// dayjs.extend(timezone)
|
||||||
dayjs.extend(advanced)
|
dayjs.extend(advanced)
|
||||||
|
|
||||||
export function DateTimeTooltip(props: {
|
export function DateTimeTooltip(props: {
|
||||||
|
@ -17,6 +18,11 @@ export function DateTimeTooltip(props: {
|
||||||
const formattedTime = dayjs(time).format('MMM DD, YYYY hh:mm a')
|
const formattedTime = dayjs(time).format('MMM DD, YYYY hh:mm a')
|
||||||
const toolTip = text ? `${text} ${formattedTime}` : formattedTime
|
const toolTip = text ? `${text} ${formattedTime}` : formattedTime
|
||||||
|
|
||||||
|
const [_, setIt] = useState()
|
||||||
|
useEffect(() => {
|
||||||
|
setIt(undefined)
|
||||||
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<span
|
<span
|
||||||
|
|
Loading…
Reference in New Issue
Block a user