From f2b319921c53010446e05ac4f24eef9995f65836 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 9 Dec 2022 11:58:39 -0300 Subject: use translation from commons --- packages/demobank-ui/src/context/pageState.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/demobank-ui/src/context/pageState.ts') diff --git a/packages/demobank-ui/src/context/pageState.ts b/packages/demobank-ui/src/context/pageState.ts index 0537a913a..fd7a6c90c 100644 --- a/packages/demobank-ui/src/context/pageState.ts +++ b/packages/demobank-ui/src/context/pageState.ts @@ -14,7 +14,7 @@ GNU Taler; see the file COPYING. If not, see */ -import { hooks } from "@gnu-taler/web-util/lib/index.browser"; +import { useNotNullLocalStorage } from "@gnu-taler/web-util/lib/index.browser"; import { ComponentChildren, createContext, h, VNode } from "preact"; import { StateUpdater, useContext } from "preact/hooks"; @@ -62,7 +62,7 @@ function usePageState( withdrawalInProgress: false, }, ): [PageStateType, StateUpdater] { - const ret = hooks.useNotNullLocalStorage("page-state", JSON.stringify(state)); + const ret = useNotNullLocalStorage("page-state", JSON.stringify(state)); const retObj: PageStateType = JSON.parse(ret[0]); const retSetter: StateUpdater = function (val) { -- cgit v1.2.3