Jeremy Gallant
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
packages/web/src/components/generic/TimeAgo.tsx
|
|
@ -90,7 +90,7 @@ export const TimeAgo = ({ |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" }); |
|
|
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" }); |
|
|
let timerId: NodeJS.Timeout; |
|
|
let timerId: ReturnType<typeof setTimeout>; |
|
|
|
|
|
|
|
|
const update = () => { |
|
|
const update = () => { |
|
|
const { value, unit } = getRelativeTimeParts(date); |
|
|
const { value, unit } = getRelativeTimeParts(date); |
|
|
|