mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-07 05:55:27 +03:00
fix hook
This commit is contained in:
parent
7b2b72ed8f
commit
d0a0229bae
@ -12,10 +12,7 @@ import {
|
|||||||
import { Switch } from "./switch";
|
import { Switch } from "./switch";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { LuCheck } from "react-icons/lu";
|
import { LuCheck } from "react-icons/lu";
|
||||||
import { useTranslation } from "react-i18next";
|
import { t } from "i18next";
|
||||||
|
|
||||||
const { t } = useTranslation(["common"]);
|
|
||||||
|
|
||||||
|
|
||||||
export interface DateRangePickerProps {
|
export interface DateRangePickerProps {
|
||||||
/** Click handler for applying the updates from DateRangePicker. */
|
/** 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" })}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -444,7 +441,7 @@ export function DateRangePicker({
|
|||||||
variant="ghost"
|
variant="ghost"
|
||||||
aria-label={t("button.reset", { ns: "common" })}
|
aria-label={t("button.reset", { ns: "common" })}
|
||||||
>
|
>
|
||||||
{t("button.reset", { ns: "common"})}
|
{t("button.reset", { ns: "common" })}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user