summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-09-06 14:55:55 -0300
committerSebastian <sebasjm@gmail.com>2021-09-06 14:55:55 -0300
commitd2cf75b782b63d7b217b14c0a3bdc953c5e3bca9 (patch)
treef739a11ae3409048ee8a65a151a5f7f68ca0bc94 /packages/taler-wallet-webextension/src/wallet/History.stories.tsx
parent1ea598b048375c4043ac4faff13af0af6ae9b041 (diff)
downloadwallet-core-d2cf75b782b63d7b217b14c0a3bdc953c5e3bca9.tar.gz
wallet-core-d2cf75b782b63d7b217b14c0a3bdc953c5e3bca9.tar.bz2
wallet-core-d2cf75b782b63d7b217b14c0a3bdc953c5e3bca9.zip
rendring pending transation item
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/History.stories.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/History.stories.tsx124
1 files changed, 13 insertions, 111 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/History.stories.tsx b/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
index 32499a264..c2b3bcd51 100644
--- a/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
@@ -130,6 +130,19 @@ export const One = createExample(TestedComponent, {
}]
});
+export const OnePending = createExample(TestedComponent, {
+ list: [{...exampleData.withdraw,
+ pending: true
+ }],
+ balances: [{
+ available: 'USD:10',
+ pendingIncoming: 'USD:0',
+ pendingOutgoing: 'USD:0',
+ hasPendingTransactions: false,
+ requiresUserInput: false,
+ }]
+});
+
export const Several = createExample(TestedComponent, {
list: [
exampleData.withdraw,
@@ -176,114 +189,3 @@ export const SeveralWithTwoCurrencies = createExample(TestedComponent, {
}]
});
-// export const WithdrawPending = createExample(TestedComponent, {
-// transaction: { ...exampleData.withdraw, pending: true },
-// });
-
-
-// export const Payment = createExample(TestedComponent, {
-// transaction: exampleData.payment
-// });
-
-// export const PaymentWithoutFee = createExample(TestedComponent, {
-// transaction: {
-// ...exampleData.payment,
-// amountRaw: 'USD:11',
-
-// }
-// });
-
-// export const PaymentPending = createExample(TestedComponent, {
-// transaction: { ...exampleData.payment, pending: true },
-// });
-
-// export const PaymentWithProducts = createExample(TestedComponent, {
-// transaction: {
-// ...exampleData.payment,
-// info: {
-// ...exampleData.payment.info,
-// summary: 'this order has 5 products',
-// products: [{
-// description: 't-shirt',
-// unit: 'shirts',
-// quantity: 1,
-// }, {
-// description: 't-shirt',
-// unit: 'shirts',
-// quantity: 1,
-// }, {
-// description: 'e-book',
-// }, {
-// description: 'beer',
-// unit: 'pint',
-// quantity: 15,
-// }, {
-// description: 'beer',
-// unit: 'pint',
-// quantity: 15,
-// }]
-// }
-// } as TransactionPayment,
-// });
-
-// export const PaymentWithLongSummary = createExample(TestedComponent, {
-// transaction: {
-// ...exampleData.payment,
-// info: {
-// ...exampleData.payment.info,
-// summary: 'this is a very long summary that will occupy severals lines, this is a very long summary that will occupy severals lines, this is a very long summary that will occupy severals lines, this is a very long summary that will occupy severals lines, ',
-// products: [{
-// description: 'an xl sized t-shirt with some drawings on it, color pink',
-// unit: 'shirts',
-// quantity: 1,
-// }, {
-// description: 'beer',
-// unit: 'pint',
-// quantity: 15,
-// }]
-// }
-// } as TransactionPayment,
-// });
-
-
-// export const Deposit = createExample(TestedComponent, {
-// transaction: exampleData.deposit
-// });
-
-// export const DepositPending = createExample(TestedComponent, {
-// transaction: { ...exampleData.deposit, pending: true }
-// });
-
-// export const Refresh = createExample(TestedComponent, {
-// transaction: exampleData.refresh
-// });
-
-// export const Tip = createExample(TestedComponent, {
-// transaction: exampleData.tip
-// });
-
-// export const TipPending = createExample(TestedComponent, {
-// transaction: { ...exampleData.tip, pending: true }
-// });
-
-// export const Refund = createExample(TestedComponent, {
-// transaction: exampleData.refund
-// });
-
-// export const RefundPending = createExample(TestedComponent, {
-// transaction: { ...exampleData.refund, pending: true }
-// });
-
-// export const RefundWithProducts = createExample(TestedComponent, {
-// transaction: {
-// ...exampleData.refund,
-// info: {
-// ...exampleData.refund.info,
-// products: [{
-// description: 't-shirt',
-// }, {
-// description: 'beer',
-// }]
-// }
-// } as TransactionRefund,
-// });