diff options
Diffstat (limited to 'packages/demobank-ui/src/hooks/preferences.ts')
-rw-r--r-- | packages/demobank-ui/src/hooks/preferences.ts | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/demobank-ui/src/hooks/preferences.ts b/packages/demobank-ui/src/hooks/preferences.ts index a1525ac80..d303ac0d8 100644 --- a/packages/demobank-ui/src/hooks/preferences.ts +++ b/packages/demobank-ui/src/hooks/preferences.ts @@ -19,14 +19,11 @@ import { TranslatedString, buildCodecForObject, codecForBoolean, - codecForNumber, - codecForString, - codecOptional + codecForNumber } from "@gnu-taler/taler-util"; import { buildStorageKey, useLocalStorage, useTranslationContext } from "@gnu-taler/web-util/browser"; interface Preferences { - currentWithdrawalOperationId: string | undefined; showWithdrawalSuccess: boolean; showDemoDescription: boolean; showInstallWallet: boolean; @@ -42,7 +39,6 @@ export function getAllBooleanPreferences(): Array<keyof Preferences> { export function getLabelForPreferences(k: keyof Preferences, i18n: ReturnType<typeof useTranslationContext>["i18n"]): TranslatedString { switch (k) { - case "currentWithdrawalOperationId": return i18n.str`Current withdrawal operation` case "maxWithdrawalAmount": return i18n.str`Max withdrawal amount` case "showWithdrawalSuccess": return i18n.str`Show withdrawal confirmation` case "showDemoDescription": return i18n.str`Show demo description` @@ -54,7 +50,6 @@ export function getLabelForPreferences(k: keyof Preferences, i18n: ReturnType<ty export const codecForPreferences = (): Codec<Preferences> => buildCodecForObject<Preferences>() - .property("currentWithdrawalOperationId", codecOptional(codecForString())) .property("showWithdrawalSuccess", (codecForBoolean())) .property("showDemoDescription", (codecForBoolean())) .property("showInstallWallet", (codecForBoolean())) @@ -64,7 +59,6 @@ export const codecForPreferences = (): Codec<Preferences> => .build("Settings"); const defaultPreferences: Preferences = { - currentWithdrawalOperationId: undefined, showWithdrawalSuccess: true, showDemoDescription: true, showInstallWallet: true, |