diff options
author | Sebastian <sebasjm@gmail.com> | 2021-11-22 17:34:27 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-11-22 17:34:31 -0300 |
commit | 829a59e1a24d6a99ce7554d28acfd05f21baeaf8 (patch) | |
tree | 66ef9157905e71ebf9e252c533d1855f381902d0 /packages/taler-wallet-webextension/src/wallet/BalancePage.tsx | |
parent | a35604fd562a72e4e266bf6a4255d89d3c1374a1 (diff) | |
download | wallet-core-829a59e1a24d6a99ce7554d28acfd05f21baeaf8.tar.xz |
add exchange feature
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/BalancePage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/BalancePage.tsx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/BalancePage.tsx b/packages/taler-wallet-webextension/src/wallet/BalancePage.tsx index 04d79a5ea..0a8910646 100644 --- a/packages/taler-wallet-webextension/src/wallet/BalancePage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/BalancePage.tsx @@ -17,7 +17,7 @@ import { BalancesResponse, i18n } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; import { BalanceTable } from "../components/BalanceTable"; -import { ButtonPrimary, ErrorBox } from "../components/styled/index"; +import { ButtonPrimary, Centered, ErrorBox } from "../components/styled/index"; import { HookResponse, useAsyncAsHook } from "../hooks/useAsyncAsHook"; import { PageLink } from "../renderHtml"; import * as wxApi from "../wxApi"; @@ -66,10 +66,17 @@ export function BalanceView({ if (balance.response.balances.length === 0) { return ( <p> - <i18n.Translate> - You have no balance to show. Need some{" "} - <Linker pageName="/welcome">help</Linker> getting started? - </i18n.Translate> + <Centered style={{ marginTop: 100 }}> + <i18n.Translate> + You have no balance to show. Need some{" "} + <Linker pageName="/welcome">help</Linker> getting started? + </i18n.Translate> + <div> + <ButtonPrimary onClick={goToWalletManualWithdraw}> + Withdraw + </ButtonPrimary> + </div> + </Centered> </p> ); } |