diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/settings/index.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/settings/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/settings/index.tsx b/packages/merchant-backoffice-ui/src/paths/settings/index.tsx index 8e69537ec..4efda43be 100644 --- a/packages/merchant-backoffice-ui/src/paths/settings/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/settings/index.tsx @@ -4,7 +4,7 @@ import { FormErrors, FormProvider } from "../../components/form/FormProvider.js" import { InputSelector } from "../../components/form/InputSelector.js"; import { InputToggle } from "../../components/form/InputToggle.js"; import { LangSelector } from "../../components/menu/LangSelector.js"; -import { Settings, useSettings } from "../../hooks/useSettings.js"; +import { Settings, usePreference } from "../../hooks/preference.js"; function getBrowserLang(): string | undefined { if (typeof window === "undefined") return undefined; @@ -18,7 +18,7 @@ export function Settings({ onClose }: { onClose?: () => void }): VNode { const borwserLang = getBrowserLang() const { update } = useLang(undefined, {}) - const [value, updateValue] = useSettings() + const [value, updateValue] = usePreference() const errors: FormErrors<Settings> = { } |