diff options
author | Sebastian <sebasjm@gmail.com> | 2023-06-13 16:46:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-06-13 16:46:31 -0300 |
commit | 4e7967dbace6734ac364c30a9dc691c1014bea45 (patch) | |
tree | 4823b0bbede486e506627fc6cd456551e802c660 /packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx | |
parent | 8b74bda065e1f2e01b322662dce3a002aa0fb20b (diff) | |
download | wallet-core-4e7967dbace6734ac364c30a9dc691c1014bea45.tar.xz |
showing off information about operation plan
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 |