diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.stories.tsx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.stories.tsx b/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.stories.tsx index 6eab8dc3a..300e9cd57 100644 --- a/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.stories.tsx +++ b/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.stories.tsx @@ -28,26 +28,27 @@ export default { argTypes: {}, }; -export const InitialState = createExample(TestedComponent, {}); +// , +const exchangeList = { + "http://exchange.taler:8081": "COL", + "http://exchange.tal": "EUR", +}; -export const WithExchangeFilled = createExample(TestedComponent, { - currency: "COL", - initialExchange: "http://exchange.taler:8081", +export const InitialState = createExample(TestedComponent, { + exchangeList, }); -export const WithExchangeAndAmountFilled = createExample(TestedComponent, { - currency: "COL", - initialExchange: "http://exchange.taler:8081", +export const WithAmountInitialized = createExample(TestedComponent, { initialAmount: "10", + exchangeList, }); export const WithExchangeError = createExample(TestedComponent, { - initialExchange: "http://exchange.tal", error: "The exchange url seems invalid", + exchangeList, }); export const WithAmountError = createExample(TestedComponent, { - currency: "COL", - initialExchange: "http://exchange.taler:8081", initialAmount: "e", + exchangeList, }); |