From e7db56101bc6ab70102a5ecdbeeca19191771376 Mon Sep 17 00:00:00 2001 From: Marcus Kimpenhaus Date: Fri, 23 Dec 2022 14:20:12 +0100 Subject: [PATCH] fixed number formatting in widgets: radarr, sonarr, overseerr --- src/widgets/overseerr/component.jsx | 11 +++++++---- src/widgets/radarr/component.jsx | 11 +++++++---- src/widgets/sonarr/component.jsx | 9 ++++++--- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/widgets/overseerr/component.jsx b/src/widgets/overseerr/component.jsx index 230a166ce..dcb5237cc 100644 --- a/src/widgets/overseerr/component.jsx +++ b/src/widgets/overseerr/component.jsx @@ -1,8 +1,11 @@ +import { useTranslation } from "next-i18next"; + import Container from "components/services/widget/container"; import Block from "components/services/widget/block"; import useWidgetAPI from "utils/proxy/use-widget-api"; export default function Component({ service }) { + const { t } = useTranslation(); const { widget } = service; const { data: statsData, error: statsError } = useWidgetAPI(widget, "request/count"); @@ -24,10 +27,10 @@ export default function Component({ service }) { return ( - - - - + + + + ); } diff --git a/src/widgets/radarr/component.jsx b/src/widgets/radarr/component.jsx index f2620b789..4d8eeee85 100644 --- a/src/widgets/radarr/component.jsx +++ b/src/widgets/radarr/component.jsx @@ -1,8 +1,11 @@ +import { useTranslation } from "next-i18next"; + import Container from "components/services/widget/container"; import Block from "components/services/widget/block"; import useWidgetAPI from "utils/proxy/use-widget-api"; export default function Component({ service }) { + const { t } = useTranslation(); const { widget } = service; const { data: moviesData, error: moviesError } = useWidgetAPI(widget, "movie"); @@ -26,10 +29,10 @@ export default function Component({ service }) { return ( - - - - + + + + ); } diff --git a/src/widgets/sonarr/component.jsx b/src/widgets/sonarr/component.jsx index 14dd33287..fd6ba9dc2 100644 --- a/src/widgets/sonarr/component.jsx +++ b/src/widgets/sonarr/component.jsx @@ -1,8 +1,11 @@ +import { useTranslation } from "next-i18next"; + import Container from "components/services/widget/container"; import Block from "components/services/widget/block"; import useWidgetAPI from "utils/proxy/use-widget-api"; export default function Component({ service }) { + const { t } = useTranslation(); const { widget } = service; const { data: wantedData, error: wantedError } = useWidgetAPI(widget, "wanted/missing"); @@ -26,9 +29,9 @@ export default function Component({ service }) { return ( - - - + + + ); }