diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-22 13:33:44 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-22 15:20:28 -0300 |
commit | 33c0267b37eecf44dc9f04e124eb44d27cba700c (patch) | |
tree | 9d5549dbb5a415b44005ab05711fc66c4643cbc9 /packages/demobank-ui/src/pages/AccountPage/views.tsx | |
parent | 5eec408d9fb5e8c2375937166997ef8267a4053c (diff) | |
download | wallet-core-33c0267b37eecf44dc9f04e124eb44d27cba700c.tar.xz |
settings and preferences, getting conversion info
Diffstat (limited to 'packages/demobank-ui/src/pages/AccountPage/views.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/AccountPage/views.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/pages/AccountPage/views.tsx b/packages/demobank-ui/src/pages/AccountPage/views.tsx index 0f5236192..cfee684fa 100644 --- a/packages/demobank-ui/src/pages/AccountPage/views.tsx +++ b/packages/demobank-ui/src/pages/AccountPage/views.tsx @@ -18,7 +18,7 @@ import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { Fragment, VNode, h } from "preact"; import { Attention } from "@gnu-taler/web-util/browser"; import { Transactions } from "../../components/Transactions/index.js"; -import { useSettings } from "../../hooks/settings.js"; +import { usePreferences } from "../../hooks/preferences.js"; import { PaymentOptions } from "../PaymentOptions.js"; import { State } from "./index.js"; @@ -32,7 +32,7 @@ const IS_PUBLIC_ACCOUNT_ENABLED = false function ShowDemoInfo(): VNode { const { i18n } = useTranslationContext(); - const [settings, updateSettings] = useSettings(); + const [settings, updateSettings] = usePreferences(); if (!settings.showDemoDescription) return <Fragment /> return <Attention title={i18n.str`This is a demo bank`} onClose={() => { updateSettings("showDemoDescription", false); |