From d2cf75b782b63d7b217b14c0a3bdc953c5e3bca9 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 6 Sep 2021 14:55:55 -0300
Subject: rendring pending transation item

---
 .../src/wallet/History.stories.tsx                 | 124 +++------------------
 1 file changed, 13 insertions(+), 111 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/History.stories.tsx')

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,
-// });
-- 
cgit v1.2.3

