diff options
author | Sebastian <sebasjm@gmail.com> | 2022-09-20 16:04:51 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-09-20 16:05:59 -0300 |
commit | 52ec740c825d4e94fd59ef0a5cd8e8b73f4dfc06 (patch) | |
tree | dd65f9852005097c2cd8975b14ccbd198bef57e8 /packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx | |
parent | a5525eab1e96d5b08fbb6442275b1e92f7f8d806 (diff) | |
download | wallet-core-52ec740c825d4e94fd59ef0a5cd8e8b73f4dfc06.tar.xz |
new compose feature: sub-states
implemented in withdraw page, WIP
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx index 60157d289..82d6090e5 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx +++ b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx @@ -38,6 +38,7 @@ import editIcon from "../../svg/edit_24px.svg"; import { Amount } from "../../components/Amount.js"; import { QR } from "../../components/QR.js"; import { useState } from "preact/hooks"; +import { ErrorMessage } from "../../components/ErrorMessage.js"; export function LoadingUriView({ error }: State.LoadingUriError): VNode { const { i18n } = useTranslationContext(); @@ -52,15 +53,12 @@ export function LoadingUriView({ error }: State.LoadingUriError): VNode { ); } -export function LoadingExchangeView({ - error, -}: State.LoadingExchangeError): VNode { +export function LoadingExchangeView(p: State.LoadingExchangeError): VNode { const { i18n } = useTranslationContext(); return ( - <LoadingError - title={<i18n.Translate>Could not get exchange</i18n.Translate>} - error={error} + <ErrorMessage + title={<i18n.Translate>Could not get a default exchange, please check configuration</i18n.Translate>} /> ); } @@ -106,13 +104,13 @@ export function SuccessView(state: State.Success): VNode { }} > <i18n.Translate>Exchange</i18n.Translate> - {/* <Link> + <Button onClick={state.doSelectExchange.onClick} variant="text"> <SvgIcon title="Edit" dangerouslySetInnerHTML={{ __html: editIcon }} color="black" /> - </Link> */} + </Button> </div> } text={<ExchangeDetails exchange={state.exchangeUrl} />} |