[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/02: removing unused function because @linaria fai
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/02: removing unused function because @linaria fails with unrelated error: TextEncoder is not defined in taler-util/lib/whatwg-url.js |
Date: |
Fri, 08 Sep 2023 23:12:46 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit df7ab5b5dc49f5555abe794ba8309a36133f7f62
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Sep 8 18:12:34 2023 -0300
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 (
- <PurchaseDetailsTable>
- {location && (
- <Fragment>
- {location.country && (
- <tr>
- <td>
- <i18n.Translate>Country</i18n.Translate>
- </td>
- <td>{location.country}</td>
- </tr>
- )}
- {location.address_lines && (
- <tr>
- <td>
- <i18n.Translate>Address lines</i18n.Translate>
- </td>
- <td>{location.address_lines}</td>
- </tr>
- )}
- {location.building_number && (
- <tr>
- <td>
- <i18n.Translate>Building number</i18n.Translate>
- </td>
- <td>{location.building_number}</td>
- </tr>
- )}
- {location.building_name && (
- <tr>
- <td>
- <i18n.Translate>Building name</i18n.Translate>
- </td>
- <td>{location.building_name}</td>
- </tr>
- )}
- {location.street && (
- <tr>
- <td>
- <i18n.Translate>Street</i18n.Translate>
- </td>
- <td>{location.street}</td>
- </tr>
- )}
- {location.post_code && (
- <tr>
- <td>
- <i18n.Translate>Post code</i18n.Translate>
- </td>
- <td>{location.post_code}</td>
- </tr>
- )}
- {location.town_location && (
- <tr>
- <td>
- <i18n.Translate>Town location</i18n.Translate>
- </td>
- <td>{location.town_location}</td>
- </tr>
- )}
- {location.town && (
- <tr>
- <td>
- <i18n.Translate>Town</i18n.Translate>
- </td>
- <td>{location.town}</td>
- </tr>
- )}
- {location.district && (
- <tr>
- <td>
- <i18n.Translate>District</i18n.Translate>
- </td>
- <td>{location.district}</td>
- </tr>
- )}
- {location.country_subdivision && (
- <tr>
- <td>
- <i18n.Translate>Country subdivision</i18n.Translate>
- </td>
- <td>{location.country_subdivision}</td>
- </tr>
- )}
- </Fragment>
- )}
-
- {!location || !date ? undefined : (
- <tr>
- <td colSpan={2}>
- <hr />
- </td>
- </tr>
- )}
- {date && (
- <Fragment>
- <tr>
- <td>
- <i18n.Translate>Date</i18n.Translate>
- </td>
- <td>
- <Time
- timestamp={AbsoluteTime.fromProtocolTimestamp(date)}
- format="dd MMMM yyyy, HH:mm"
- />
- </td>
- </tr>
- </Fragment>
- )}
- </PurchaseDetailsTable>
- );
-}
+// function DeliveryDetails({
+// date,
+// location,
+// }: {
+// date: TalerProtocolTimestamp | undefined;
+// location: Location | undefined;
+// }): VNode {
+// const { i18n } = useTranslationContext();
+// return (
+// <PurchaseDetailsTable>
+// {location && (
+// <Fragment>
+// {location.country && (
+// <tr>
+// <td>
+// <i18n.Translate>Country</i18n.Translate>
+// </td>
+// <td>{location.country}</td>
+// </tr>
+// )}
+// {location.address_lines && (
+// <tr>
+// <td>
+// <i18n.Translate>Address lines</i18n.Translate>
+// </td>
+// <td>{location.address_lines}</td>
+// </tr>
+// )}
+// {location.building_number && (
+// <tr>
+// <td>
+// <i18n.Translate>Building number</i18n.Translate>
+// </td>
+// <td>{location.building_number}</td>
+// </tr>
+// )}
+// {location.building_name && (
+// <tr>
+// <td>
+// <i18n.Translate>Building name</i18n.Translate>
+// </td>
+// <td>{location.building_name}</td>
+// </tr>
+// )}
+// {location.street && (
+// <tr>
+// <td>
+// <i18n.Translate>Street</i18n.Translate>
+// </td>
+// <td>{location.street}</td>
+// </tr>
+// )}
+// {location.post_code && (
+// <tr>
+// <td>
+// <i18n.Translate>Post code</i18n.Translate>
+// </td>
+// <td>{location.post_code}</td>
+// </tr>
+// )}
+// {location.town_location && (
+// <tr>
+// <td>
+// <i18n.Translate>Town location</i18n.Translate>
+// </td>
+// <td>{location.town_location}</td>
+// </tr>
+// )}
+// {location.town && (
+// <tr>
+// <td>
+// <i18n.Translate>Town</i18n.Translate>
+// </td>
+// <td>{location.town}</td>
+// </tr>
+// )}
+// {location.district && (
+// <tr>
+// <td>
+// <i18n.Translate>District</i18n.Translate>
+// </td>
+// <td>{location.district}</td>
+// </tr>
+// )}
+// {location.country_subdivision && (
+// <tr>
+// <td>
+// <i18n.Translate>Country subdivision</i18n.Translate>
+// </td>
+// <td>{location.country_subdivision}</td>
+// </tr>
+// )}
+// </Fragment>
+// )}
+
+// {!location || !date ? undefined : (
+// <tr>
+// <td colSpan={2}>
+// <hr />
+// </td>
+// </tr>
+// )}
+// {date && (
+// <Fragment>
+// <tr>
+// <td>
+// <i18n.Translate>Date</i18n.Translate>
+// </td>
+// <td>
+// <Time
+// timestamp={AbsoluteTime.fromProtocolTimestamp(date)}
+// format="dd MMMM yyyy, HH:mm"
+// />
+// </td>
+// </tr>
+// </Fragment>
+// )}
+// </PurchaseDetailsTable>
+// );
+// }
export function ExchangeDetails({ exchange }: { exchange: string }): VNode {
return (
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.