From 3642b1e84a20fef72428b3e240c86d35be8be8a2 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Sun, 21 Mar 2021 01:00:55 -0400 Subject: [PATCH] fix(ui): do not require numeric value in FormattedRelativeTime (#1234) --- src/components/DownloadBlock/index.tsx | 1 + src/components/RequestList/RequestItem/index.tsx | 1 + src/components/Settings/SettingsAbout/Releases/index.tsx | 2 +- src/components/Settings/SettingsJobsCache/index.tsx | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/DownloadBlock/index.tsx b/src/components/DownloadBlock/index.tsx index 7799ac34..0075ecb4 100644 --- a/src/components/DownloadBlock/index.tsx +++ b/src/components/DownloadBlock/index.tsx @@ -64,6 +64,7 @@ const DownloadBlock: React.FC = ({ 1000 )} updateIntervalInSeconds={1} + numeric="auto" /> ) : ( 'N/A' diff --git a/src/components/RequestList/RequestItem/index.tsx b/src/components/RequestList/RequestItem/index.tsx index efba5ac8..c4a31254 100644 --- a/src/components/RequestList/RequestItem/index.tsx +++ b/src/components/RequestList/RequestItem/index.tsx @@ -292,6 +292,7 @@ const RequestItem: React.FC = ({ 1000 )} updateIntervalInSeconds={1} + numeric="auto" /> ), user: ( diff --git a/src/components/Settings/SettingsAbout/Releases/index.tsx b/src/components/Settings/SettingsAbout/Releases/index.tsx index 7844a0c8..78a02e43 100644 --- a/src/components/Settings/SettingsAbout/Releases/index.tsx +++ b/src/components/Settings/SettingsAbout/Releases/index.tsx @@ -107,7 +107,7 @@ const Release: React.FC = ({ (new Date(release.created_at).getTime() - Date.now()) / 1000 )} updateIntervalInSeconds={1} - numeric="always" + numeric="auto" /> {release.name} diff --git a/src/components/Settings/SettingsJobsCache/index.tsx b/src/components/Settings/SettingsJobsCache/index.tsx index 350cb94a..f876ab72 100644 --- a/src/components/Settings/SettingsJobsCache/index.tsx +++ b/src/components/Settings/SettingsJobsCache/index.tsx @@ -175,6 +175,7 @@ const SettingsJobs: React.FC = () => { 1000 )} updateIntervalInSeconds={1} + numeric="auto" />