diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw/stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw/stories.tsx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/stories.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw/stories.tsx index 29f7e0a30..df70a5c95 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw/stories.tsx +++ b/packages/taler-wallet-webextension/src/cta/Withdraw/stories.tsx @@ -64,6 +64,7 @@ export const TermsOfServiceNotYetLoaded = tests.createExample(SuccessView, { fraction: 0, value: 1, }, + accounts: [], }); export const WithSomeFee = tests.createExample(SuccessView, { @@ -90,6 +91,7 @@ export const WithSomeFee = tests.createExample(SuccessView, { value: 1, }, doSelectExchange: {}, + accounts: [], }); export const WithoutFee = tests.createExample(SuccessView, { @@ -116,6 +118,7 @@ export const WithoutFee = tests.createExample(SuccessView, { fraction: 0, value: 2, }, + accounts: [], }); export const EditExchangeUntouched = tests.createExample(SuccessView, { @@ -142,6 +145,7 @@ export const EditExchangeUntouched = tests.createExample(SuccessView, { fraction: 0, value: 2, }, + accounts: [], }); export const EditExchangeModified = tests.createExample(SuccessView, { @@ -168,6 +172,7 @@ export const EditExchangeModified = tests.createExample(SuccessView, { fraction: 0, value: 2, }, + accounts: [], }); export const WithAgeRestriction = tests.createExample(SuccessView, { @@ -195,4 +200,32 @@ export const WithAgeRestriction = tests.createExample(SuccessView, { fraction: 0, value: 2, }, + accounts: [], +}); + +export const WithAlternateCurrencies = tests.createExample(SuccessView, { + error: undefined, + status: "success", + chosenAmount: { + currency: "USD", + value: 2, + fraction: 10000000, + }, + accounts: [], + doWithdrawal: { onClick: nullFunction }, + currentExchange: { + exchangeBaseUrl: "https://exchange.demo.taler.net", + tos: {}, + } as Partial<ExchangeListItem> as any, + withdrawalFee: { + currency: "USD", + fraction: 10000000, + value: 1, + }, + doSelectExchange: {}, + toBeReceived: { + currency: "USD", + fraction: 0, + value: 1, + }, }); |