diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx index 47c5ffea1..2c862202a 100644 --- a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx @@ -34,6 +34,8 @@ import arrowIcon from "../../svg/chevron-down.inline.svg"; import bankIcon from "../../svg/ri-bank-line.inline.svg"; import { assertUnreachable } from "../../utils/index.js"; import { Contact, State } from "./index.js"; +import { useEffect } from "preact/hooks"; +import { Checkbox } from "../../components/Checkbox.js"; export function SelectCurrencyView({ currencies, @@ -192,6 +194,8 @@ export function ReadyView(props: State.Ready): VNode { export function ReadyGetView({ amountHandler, goToBank, + amounts, + mode, goToWallet, selectCurrency, previous, @@ -201,14 +205,22 @@ export function ReadyGetView({ return ( <Container> <h1> - <i18n.Translate>Specify the amount and the origin</i18n.Translate> + <i18n.Translate>Specify the amount and the origin2</i18n.Translate> </h1> + <pre>{JSON.stringify(amounts["withdrawal"], undefined, 2)}</pre> <Grid container columns={2} justifyContent="space-between"> <AmountField label={i18n.str`Amount`} required handler={amountHandler} /> + <Checkbox + label={i18n.str`Raw mode`} + name="rawMode" + enabled={mode.value!} + onToggle={mode.button.onClick!} + /> + <Button onClick={selectCurrency.onClick}> <i18n.Translate>Change currency</i18n.Translate> </Button> @@ -281,6 +293,7 @@ export function ReadyGetView({ } export function ReadySendView({ amountHandler, + amounts, goToBank, goToWallet, previous, @@ -293,6 +306,7 @@ export function ReadySendView({ <h1> <i18n.Translate>Specify the amount and the destination</i18n.Translate> </h1> + <pre>{JSON.stringify(amounts["deposit"], undefined, 2)}</pre> <Grid container columns={2} justifyContent="space-between"> <AmountField |