From df7ab5b5dc49f5555abe794ba8309a36133f7f62 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 8 Sep 2023 18:12:34 -0300 Subject: removing unused function because @linaria fails with unrelated error: TextEncoder is not defined in taler-util/lib/whatwg-url.js --- .../src/wallet/Transaction.tsx | 240 ++++++++++----------- 1 file changed, 120 insertions(+), 120 deletions(-) diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index 018d3ccb4..3b76558ce 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -1073,126 +1073,126 @@ export function MerchantDetails({ ); } -function DeliveryDetails({ - date, - location, -}: { - date: TalerProtocolTimestamp | undefined; - location: Location | undefined; -}): VNode { - const { i18n } = useTranslationContext(); - return ( - - {location && ( - - {location.country && ( - - - Country - - {location.country} - - )} - {location.address_lines && ( - - - Address lines - - {location.address_lines} - - )} - {location.building_number && ( - - - Building number - - {location.building_number} - - )} - {location.building_name && ( - - - Building name - - {location.building_name} - - )} - {location.street && ( - - - Street - - {location.street} - - )} - {location.post_code && ( - - - Post code - - {location.post_code} - - )} - {location.town_location && ( - - - Town location - - {location.town_location} - - )} - {location.town && ( - - - Town - - {location.town} - - )} - {location.district && ( - - - District - - {location.district} - - )} - {location.country_subdivision && ( - - - Country subdivision - - {location.country_subdivision} - - )} - - )} - - {!location || !date ? undefined : ( - - -
- - - )} - {date && ( - - - - Date - - - - )} -
- ); -} +// function DeliveryDetails({ +// date, +// location, +// }: { +// date: TalerProtocolTimestamp | undefined; +// location: Location | undefined; +// }): VNode { +// const { i18n } = useTranslationContext(); +// return ( +// +// {location && ( +// +// {location.country && ( +// +// +// Country +// +// {location.country} +// +// )} +// {location.address_lines && ( +// +// +// Address lines +// +// {location.address_lines} +// +// )} +// {location.building_number && ( +// +// +// Building number +// +// {location.building_number} +// +// )} +// {location.building_name && ( +// +// +// Building name +// +// {location.building_name} +// +// )} +// {location.street && ( +// +// +// Street +// +// {location.street} +// +// )} +// {location.post_code && ( +// +// +// Post code +// +// {location.post_code} +// +// )} +// {location.town_location && ( +// +// +// Town location +// +// {location.town_location} +// +// )} +// {location.town && ( +// +// +// Town +// +// {location.town} +// +// )} +// {location.district && ( +// +// +// District +// +// {location.district} +// +// )} +// {location.country_subdivision && ( +// +// +// Country subdivision +// +// {location.country_subdivision} +// +// )} +// +// )} + +// {!location || !date ? undefined : ( +// +// +//
+// +// +// )} +// {date && ( +// +// +// +// Date +// +// +// +// )} +//
+// ); +// } export function ExchangeDetails({ exchange }: { exchange: string }): VNode { return ( -- cgit v1.2.3