diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-01 10:09:38 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-01 10:09:54 -0300 |
commit | 1e5abb5b2aa9545e194f6db879e7480162f6d481 (patch) | |
tree | d5e31d4cfe595aeb20c6e0dce2719e2a5ebc352c /packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx | |
parent | ce2e58962cb0a61725fe0fe3dd8535965f482b95 (diff) | |
download | wallet-core-1e5abb5b2aa9545e194f6db879e7480162f6d481.tar.xz |
exchange account info
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx b/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx index f489b805b..144413541 100644 --- a/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { AmountJson, PaytoUri, stringifyPaytoUri } from "@gnu-taler/taler-util"; +import { AmountJson, PaytoUri, WithdrawalExchangeAccountDetails, stringifyPaytoUri } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; import { Amount } from "../components/Amount.js"; import { BankDetailsByPaytoType } from "../components/BankDetailsByPaytoType.js"; @@ -26,7 +26,7 @@ import { Button } from "../mui/Button.js"; export interface Props { reservePub: string; paytoURI: PaytoUri | undefined; - exchangeBaseUrl: string; + accounts: WithdrawalExchangeAccountDetails[]; amount: AmountJson; onCancel: () => Promise<void>; } @@ -35,7 +35,7 @@ export function ReserveCreated({ reservePub, paytoURI, onCancel, - exchangeBaseUrl, + accounts, amount, }: Props): VNode { const { i18n } = useTranslationContext(); @@ -47,17 +47,6 @@ export function ReserveCreated({ /> ); } - function TransferDetails(): VNode { - if (!paytoURI) return <Fragment />; - return ( - <BankDetailsByPaytoType - amount={amount} - exchangeBaseUrl={exchangeBaseUrl} - subject={reservePub} - /> - ); - } - return ( <Fragment> <section> @@ -71,7 +60,11 @@ export function ReserveCreated({ </i18n.Translate> </p> </section> - <TransferDetails /> + <BankDetailsByPaytoType + amount={amount} + accounts={accounts} + subject={reservePub} + /> <section> <p> <i18n.Translate> |