From 882d6b3710f82d85b2129f09c63f9db45985ef64 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 24 Jan 2022 14:12:12 -0300 Subject: last activity -> pending; fix downloadTos --- .../src/wallet/History.tsx | 107 ++++++++++++--------- 1 file changed, 62 insertions(+), 45 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/History.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/History.tsx b/packages/taler-wallet-webextension/src/wallet/History.tsx index a295ca28f..feeb61c5d 100644 --- a/packages/taler-wallet-webextension/src/wallet/History.tsx +++ b/packages/taler-wallet-webextension/src/wallet/History.tsx @@ -28,6 +28,8 @@ import { ButtonBoxPrimary, ButtonBoxWarning, ButtonPrimary, + CenteredBoldText, + CenteredText, DateSeparator, NiceSelect, WarningBox, @@ -126,8 +128,6 @@ export function HistoryView({ }, {} as { [x: string]: Transaction[] }); const datesWithTransaction = Object.keys(byDate); - const multiCurrency = balances.length > 1; - if (balances.length === 0 || !selectedCurrency) { return ( @@ -143,52 +143,73 @@ export function HistoryView({ return (
-

- {currencies.length === 1 ? ( -

{selectedCurrency}
- ) : ( - - { + setCurrencyIndex(Number(e.currentTarget.value)); + }} + > + {currencies.map((currency, index) => { + return ( + + ); + })} + + + )} + {currencyAmount && ( + - {currencies.map((currency, index) => { - return ( - - ); - })} - - - )} - {currencyAmount && ( -

- {Amounts.stringifyValue(currencyAmount)} -

- )} -

-
- goToWalletManualWithdraw(selectedCurrency)} - > - Withdraw - - {currencyAmount && Amounts.isNonZero(currencyAmount) && ( - goToWalletDeposit(selectedCurrency)} + {Amounts.stringifyValue(currencyAmount)} + + )} +
+
+ goToWalletManualWithdraw(selectedCurrency)} > - Deposit - - )} + Withdraw + + {currencyAmount && Amounts.isNonZero(currencyAmount) && ( + goToWalletDeposit(selectedCurrency)} + > + Deposit + + )} +
{datesWithTransaction.length === 0 ? ( @@ -205,11 +226,7 @@ export function HistoryView({ /> {byDate[d].map((tx, i) => ( - + ))}
); -- cgit v1.2.3