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 --- .../ShowFullContractTermPopup.stories.tsx | 6 ++-- .../src/components/ShowFullContractTermPopup.tsx | 8 ++--- .../src/cta/Payment/views.tsx | 2 +- .../src/cta/Refund/index.ts | 2 +- .../src/cta/Refund/state.ts | 2 +- .../src/cta/Refund/stories.tsx | 26 ++++++++-------- .../src/cta/Refund/views.tsx | 4 +-- .../src/wallet/Transaction.stories.tsx | 36 +++++++++++----------- .../src/wallet/Transaction.tsx | 22 ++++++------- 9 files changed, 54 insertions(+), 54 deletions(-) (limited to 'packages/taler-wallet-webextension/src') diff --git a/packages/taler-wallet-webextension/src/components/ShowFullContractTermPopup.stories.tsx b/packages/taler-wallet-webextension/src/components/ShowFullContractTermPopup.stories.tsx index 6cf863519..74c92cbc6 100644 --- a/packages/taler-wallet-webextension/src/components/ShowFullContractTermPopup.stories.tsx +++ b/packages/taler-wallet-webextension/src/components/ShowFullContractTermPopup.stories.tsx @@ -73,11 +73,11 @@ const cd: WalletContractData = { country: "ar", }, }, - products: [], + // products: [], autoRefund: undefined, summaryI18n: undefined, - deliveryDate: undefined, - deliveryLocation: undefined, + // deliveryDate: undefined, + // deliveryLocation: undefined, }; export const ShowingSimpleOrder = tests.createExample(ShowView, { diff --git a/packages/taler-wallet-webextension/src/components/ShowFullContractTermPopup.tsx b/packages/taler-wallet-webextension/src/components/ShowFullContractTermPopup.tsx index 392a7d0e8..db9b6ebcd 100644 --- a/packages/taler-wallet-webextension/src/components/ShowFullContractTermPopup.tsx +++ b/packages/taler-wallet-webextension/src/components/ShowFullContractTermPopup.tsx @@ -259,7 +259,7 @@ export function ShowView({ contractTerms, hideHandler }: States.Show): VNode { - + {/* Delivery date @@ -291,7 +291,7 @@ export function ShowView({ contractTerms, hideHandler }: States.Show): VNode { .map((p) => `${p.description} x ${p.quantity}`) .join(", ")} - + */} Created at @@ -334,8 +334,8 @@ export function ShowView({ contractTerms, hideHandler }: States.Show): VNode { !contractTerms.autoRefund ? Duration.getZero() : Duration.fromTalerProtocolDuration( - contractTerms.autoRefund, - ), + contractTerms.autoRefund, + ), )} format="dd MMMM yyyy, HH:mm" /> diff --git a/packages/taler-wallet-webextension/src/cta/Payment/views.tsx b/packages/taler-wallet-webextension/src/cta/Payment/views.tsx index 0bdadef0e..c00e570f9 100644 --- a/packages/taler-wallet-webextension/src/cta/Payment/views.tsx +++ b/packages/taler-wallet-webextension/src/cta/Payment/views.tsx @@ -76,7 +76,7 @@ export function BaseView(state: SupportedStates): VNode { ...contractTerms, orderId: contractTerms.order_id, contractTermsHash: "", - products: contractTerms.products!, + // products: contractTerms.products!, }} proposalId={state.payStatus.proposalId} /> diff --git a/packages/taler-wallet-webextension/src/cta/Refund/index.ts b/packages/taler-wallet-webextension/src/cta/Refund/index.ts index bbb72c328..42e9cc534 100644 --- a/packages/taler-wallet-webextension/src/cta/Refund/index.ts +++ b/packages/taler-wallet-webextension/src/cta/Refund/index.ts @@ -49,7 +49,7 @@ export namespace State { interface BaseInfo { merchantName: string; - products: Product[] | undefined; + // products: Product[] | undefined; amount: AmountJson; // awaitingAmount: AmountJson; // granted: AmountJson; diff --git a/packages/taler-wallet-webextension/src/cta/Refund/state.ts b/packages/taler-wallet-webextension/src/cta/Refund/state.ts index 0ba77a19d..6c0f37471 100644 --- a/packages/taler-wallet-webextension/src/cta/Refund/state.ts +++ b/packages/taler-wallet-webextension/src/cta/Refund/state.ts @@ -106,7 +106,7 @@ export function useComponentState({ // granted: Amounts.parseOrThrow(info.response.refund.granted), // awaitingAmount: Amounts.parseOrThrow(refund.awaiting), merchantName: purchase.info.merchant.name, - products: purchase.info.products, + // products: purchase.info.products, error: undefined, }; diff --git a/packages/taler-wallet-webextension/src/cta/Refund/stories.tsx b/packages/taler-wallet-webextension/src/cta/Refund/stories.tsx index ef1f76033..03d55ee91 100644 --- a/packages/taler-wallet-webextension/src/cta/Refund/stories.tsx +++ b/packages/taler-wallet-webextension/src/cta/Refund/stories.tsx @@ -47,7 +47,7 @@ export const Ready = tests.createExample(ReadyView, { // awaitingAmount: Amounts.parseOrThrow("USD:1"), // granted: Amounts.parseOrThrow("USD:0"), merchantName: "the merchant", - products: [], + // products: [], orderId: "abcdef", }); @@ -60,18 +60,18 @@ export const WithAProductList = tests.createExample(ReadyView, { // awaitingAmount: Amounts.parseOrThrow("USD:1"), // granted: Amounts.parseOrThrow("USD:0"), merchantName: "the merchant", - products: [ - { - description: "beer", - image: beer, - quantity: 2, - }, - { - description: "t-shirt", - price: "EUR:1", - quantity: 5, - }, - ], + // products: [ + // { + // description: "beer", + // image: beer, + // quantity: 2, + // }, + // { + // description: "t-shirt", + // price: "EUR:1", + // quantity: 5, + // }, + // ], orderId: "abcdef", }); diff --git a/packages/taler-wallet-webextension/src/cta/Refund/views.tsx b/packages/taler-wallet-webextension/src/cta/Refund/views.tsx index accdab0c3..b6638cf8b 100644 --- a/packages/taler-wallet-webextension/src/cta/Refund/views.tsx +++ b/packages/taler-wallet-webextension/src/cta/Refund/views.tsx @@ -104,11 +104,11 @@ export function ReadyView(state: State.Ready): VNode { kind="positive" /> */} - {state.products && state.products.length ? ( + {/* {state.products && state.products.length ? (
- ) : undefined} + ) : undefined} */}