aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/Transaction.tsx262
1 files changed, 131 insertions, 131 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index e54137016..3b76558ce 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({
<Fragment>
<section style={{ padding: 8, textAlign: "center" }}>
{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 ? (
<ErrorAlertView
error={alertFromError(
@@ -464,7 +464,7 @@ export function TransactionView({
{/**FIXME: DD37 check if this holds */}
{transaction.txState.major !==
- TransactionMajorState.Pending ? undefined : transaction
+ TransactionMajorState.Pending ? undefined : transaction
.withdrawalDetails.type === WithdrawalType.ManualTransfer ? (
//manual withdrawal
<BankDetailsByPaytoType
@@ -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 (
@@ -1475,10 +1475,10 @@ export function PurchaseDetails({
const total = Amounts.add(price.value, price.fee).amount;
- const hasProducts = info.products && info.products.length > 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({
</tr>
</Fragment>
)}
- {hasProducts && (
+ {/* {hasProducts && (
<tr>
<td colSpan={2}>
<PartCollapsible
@@ -1586,8 +1586,8 @@ export function PurchaseDetails({
/>
</td>
</tr>
- )}
- {hasShipping && (
+ )} */}
+ {/* {hasShipping && (
<tr>
<td colSpan={2}>
<PartCollapsible
@@ -1602,7 +1602,7 @@ export function PurchaseDetails({
/>
</td>
</tr>
- )}
+ )} */}
<tr>
<td>
<ShowFullContractTermPopup proposalId={proposalId} />
@@ -2008,7 +2008,7 @@ function ShowWithdrawalDetailForBankIntegrated({
/>
)}
{!transaction.withdrawalDetails.confirmed &&
- transaction.withdrawalDetails.bankConfirmationUrl ? (
+ transaction.withdrawalDetails.bankConfirmationUrl ? (
<InfoBox>
<div style={{ display: "block" }}>
<i18n.Translate>