From 16777ba20564d8b002e33a01afa3ea49ca715cce Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 17 Aug 2022 16:12:21 -0300 Subject: some fixes --- .../src/wallet/DestinationSelection.tsx | 83 ++++++++++------------ 1 file changed, 36 insertions(+), 47 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx b/packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx index ba5dcf1da..c62504538 100644 --- a/packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx @@ -186,24 +186,37 @@ export function SelectCurrency({ const list: Record = {}; hook.response.exchanges.forEach((e) => (list[e.currency] = e.currency)); list[""] = "Select a currency"; + return ; +} + +export function SelectCurrencyView({ + onChange, + list, +}: { + onChange: (s: string) => void; + list: Record; +}): VNode { + const { i18n } = useTranslationContext(); + return ( -

- Specify the amount and the origin -

+

+ + Choose a currency to proceed or add another exchange + +

- - Choose a currency to proceed or add more exchanges in the settings tab - - - Known currencies} - list={list} - name="lang" - value={""} - onChange={(v) => onChange(v)} - /> - +

+ + Known currencies} + list={list} + name="lang" + value={""} + onChange={(v) => onChange(v)} + /> + +

@@ -320,7 +333,7 @@ export function DestinationSelectionGetCash({ {previous2.length > 0 ? ( -

Previous origins:

+

Use previous origins:

@@ -337,9 +350,9 @@ export function DestinationSelectionGetCash({
) : undefined} -

Create new origin for the money

+

Or specify a new origin for the money

- +

From my bank account

@@ -355,23 +368,11 @@ export function DestinationSelectionGetCash({
-

From someone else

- -
-
- - -

From a business or charity

+

From another wallet

- - -

From a exchange reserve or purse

- -
-
); @@ -441,7 +442,7 @@ export function DestinationSelectionSendCash({ {previous2.length > 0 ? ( -

Previous destinations:

+

Use previous destinations:

@@ -458,9 +459,9 @@ export function DestinationSelectionSendCash({
) : undefined} -

Create a destination for the money

+

Or specify a new destination for the money

- +

To my bank account

@@ -469,22 +470,10 @@ export function DestinationSelectionSendCash({
-

To someone else

+

To another wallet

- - -

To a business or charity

- -
-
-
- - -

To an exchange reserve or purse

- -
-- cgit v1.2.3