From d0a0229bae9a43700b53383327d33eba4e4f1920 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 16 Mar 2025 10:55:37 -0500 Subject: [PATCH] fix hook --- web/src/components/ui/calendar-range.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/web/src/components/ui/calendar-range.tsx b/web/src/components/ui/calendar-range.tsx index e360010b4..3c2974634 100644 --- a/web/src/components/ui/calendar-range.tsx +++ b/web/src/components/ui/calendar-range.tsx @@ -12,10 +12,7 @@ import { import { Switch } from "./switch"; import { cn } from "@/lib/utils"; import { LuCheck } from "react-icons/lu"; -import { useTranslation } from "react-i18next"; - -const { t } = useTranslation(["common"]); - +import { t } from "i18next"; export interface DateRangePickerProps { /** Click handler for applying the updates from DateRangePicker. */ @@ -433,7 +430,7 @@ export function DateRangePicker({ } }} > - {t("button.apply", { ns: "common"})} + {t("button.apply", { ns: "common" })}