From 33c0267b37eecf44dc9f04e124eb44d27cba700c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 22 Nov 2023 13:33:44 -0300 Subject: settings and preferences, getting conversion info --- packages/demobank-ui/src/pages/WalletWithdrawForm.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/demobank-ui/src/pages/WalletWithdrawForm.tsx') diff --git a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx index a9a661c25..5eef95f1e 100644 --- a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx +++ b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx @@ -32,7 +32,7 @@ import { useState } from "preact/hooks"; import { Attention } from "@gnu-taler/web-util/browser"; import { useBankCoreApiContext } from "../context/config.js"; import { useBackendState } from "../hooks/backend.js"; -import { useSettings } from "../hooks/settings.js"; +import { usePreferences } from "../hooks/preferences.js"; import { undefinedIfEmpty, withRuntimeErrorHandling } from "../utils.js"; import { OperationState } from "./OperationState/index.js"; import { InputAmount, doAutoFocus } from "./PaytoWireTransferForm.js"; @@ -50,7 +50,7 @@ function OldWithdrawalForm({ goToConfirmOperation, limit, onCancel, focus }: { onCancel: () => void; }): VNode { const { i18n } = useTranslationContext(); - const [settings, updateSettings] = useSettings() + const [settings, updateSettings] = usePreferences() const { state: credentials } = useBackendState(); const creds = credentials.status !== "loggedIn" ? undefined : credentials @@ -240,7 +240,7 @@ export function WalletWithdrawForm({ onCancel: () => void; }): VNode { const { i18n } = useTranslationContext(); - const [settings, updateSettings] = useSettings() + const [settings, updateSettings] = usePreferences() return (
-- cgit v1.2.3