diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Application.tsx | 40 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Transaction.tsx | 14 |
2 files changed, 37 insertions, 17 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx index d2cbf440f..1ff29726b 100644 --- a/packages/taler-wallet-webextension/src/wallet/Application.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -249,49 +249,65 @@ export function Application(): VNode { redirectTo(Pages.ctaWithdrawManual({ amount })) } cancel={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaRefund} component={RefundPage} cancel={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaTips} component={TipPage} onCancel={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaWithdraw} component={WithdrawPageFromURI} cancel={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaWithdrawManual.pattern} component={WithdrawPageFromParams} cancel={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaDeposit} component={DepositPageCTA} cancel={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaInvoiceCreate.pattern} component={InvoiceCreatePage} onClose={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaTransferCreate.pattern} component={TransferCreatePage} onClose={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaInvoicePay} @@ -300,13 +316,17 @@ export function Application(): VNode { redirectTo(Pages.ctaWithdrawManual({ amount })) } onClose={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> <Route path={Pages.ctaTransferPickup} component={TransferPickupPage} onClose={() => redirectTo(Pages.balance)} - onSuccess={(tid:string) => redirectTo(Pages.balanceTransaction({ tid }))} + onSuccess={(tid: string) => + redirectTo(Pages.balanceTransaction({ tid })) + } /> {/** diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index 8318677e3..8e479f988 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -634,7 +634,7 @@ export function TransactionView({ text={transaction.exchangeBaseUrl} kind="neutral" /> - {transaction.pending && ( /** pending is not-pay */ + {transaction.pending /** pending is not-pay */ && ( <Part title={<i18n.Translate>URI</i18n.Translate>} text={<ShowQrWithCopy text={transaction.talerUri} />} @@ -720,13 +720,13 @@ export function TransactionView({ text={transaction.exchangeBaseUrl} kind="neutral" /> - {/* {transaction.pending && ( //pending is not-received + {/* {transaction.pending && ( //pending is not-received )} */} - <Part - title={<i18n.Translate>URI</i18n.Translate>} - text={<ShowQrWithCopy text={transaction.talerUri} />} - kind="neutral" - /> + <Part + title={<i18n.Translate>URI</i18n.Translate>} + text={<ShowQrWithCopy text={transaction.talerUri} />} + kind="neutral" + /> <Part title={<i18n.Translate>Details</i18n.Translate>} text={ |