From b784144edf2cf21b886bfbea6750cac69fb94159 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 8 Sep 2023 18:09:33 -0300 Subject: remove references to product and delivery --- .../src/wallet/Transaction.stories.tsx | 36 +++++++++++----------- .../src/wallet/Transaction.tsx | 22 ++++++------- 2 files changed, 29 insertions(+), 29 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet') diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx index 3ba3ac591..f1ae84ed3 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx @@ -378,9 +378,9 @@ export const PaymentWithDeliveryDate = tests.createExample(TestedComponent, { amountRaw: "KUDOS:12", info: { ...exampleData.payment.info, - delivery_date: { - t_s: new Date().getTime() / 1000, - }, + // delivery_date: { + // t_s: new Date().getTime() / 1000, + // }, }, }, }); @@ -391,12 +391,12 @@ export const PaymentWithDeliveryAddr = tests.createExample(TestedComponent, { amountRaw: "KUDOS:12", info: { ...exampleData.payment.info, - delivery_location: { - country: "Argentina", - street: "Elm Street", - district: "CABA", - post_code: "1101", - }, + // delivery_location: { + // country: "Argentina", + // street: "Elm Street", + // district: "CABA", + // post_code: "1101", + // }, }, }, }); @@ -407,15 +407,15 @@ export const PaymentWithDeliveryFull = tests.createExample(TestedComponent, { amountRaw: "KUDOS:12", info: { ...exampleData.payment.info, - delivery_date: { - t_s: new Date().getTime() / 1000, - }, - delivery_location: { - country: "Argentina", - street: "Elm Street", - district: "CABA", - post_code: "1101", - }, + // delivery_date: { + // t_s: new Date().getTime() / 1000, + // }, + // delivery_location: { + // country: "Argentina", + // street: "Elm Street", + // district: "CABA", + // post_code: "1101", + // }, }, }, }); diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index e54137016..018d3ccb4 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -237,8 +237,8 @@ function TransactionTemplate({
{transaction?.error && - // FIXME: wallet core should stop sending this error on KYC - transaction.error.code !== + // FIXME: wallet core should stop sending this error on KYC + transaction.error.code !== TalerErrorCode.WALLET_WITHDRAWAL_KYC_REQUIRED ? ( 0; + // const hasProducts = info.products && info.products.length > 0; - const hasShipping = - info.delivery_date !== undefined || info.delivery_location !== undefined; + // const hasShipping = + // info.delivery_date !== undefined || info.delivery_location !== undefined; const showLargePic = (): void => { return; @@ -1558,7 +1558,7 @@ export function PurchaseDetails({ )} - {hasProducts && ( + {/* {hasProducts && ( - )} - {hasShipping && ( + )} */} + {/* {hasShipping && ( - )} + )} */} @@ -2008,7 +2008,7 @@ function ShowWithdrawalDetailForBankIntegrated({ /> )} {!transaction.withdrawalDetails.confirmed && - transaction.withdrawalDetails.bankConfirmationUrl ? ( + transaction.withdrawalDetails.bankConfirmationUrl ? (
-- cgit v1.2.3