aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx5
-rw-r--r--packages/taler-wallet-webextension/src/cta/Deposit/views.tsx4
-rw-r--r--packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx10
-rw-r--r--packages/taler-wallet-webextension/src/cta/InvoicePay/views.tsx1
-rw-r--r--packages/taler-wallet-webextension/src/cta/Payment/views.tsx2
-rw-r--r--packages/taler-wallet-webextension/src/cta/Reward/views.tsx8
-rw-r--r--packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts2
7 files changed, 11 insertions, 21 deletions
diff --git a/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx b/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx
index 3a9f9e85d..4374b4a3b 100644
--- a/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx
+++ b/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx
@@ -15,16 +15,15 @@
*/
import { ExchangeTosStatus } from "@gnu-taler/taler-util";
+import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { Fragment, h, VNode } from "preact";
import { CheckboxOutlined } from "../../components/CheckboxOutlined.js";
import { ExchangeXmlTos } from "../../components/ExchangeToS.js";
import {
LinkSuccess,
TermsOfServiceStyle,
- WarningBox,
- WarningText,
+ WarningBox
} from "../../components/styled/index.js";
-import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { Button } from "../../mui/Button.js";
import { State } from "./index.js";
diff --git a/packages/taler-wallet-webextension/src/cta/Deposit/views.tsx b/packages/taler-wallet-webextension/src/cta/Deposit/views.tsx
index c352e394e..c683a755c 100644
--- a/packages/taler-wallet-webextension/src/cta/Deposit/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Deposit/views.tsx
@@ -15,12 +15,10 @@
*/
import { Amounts } from "@gnu-taler/taler-util";
+import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { Fragment, h, VNode } from "preact";
import { Amount } from "../../components/Amount.js";
-import { LogoHeader } from "../../components/LogoHeader.js";
import { Part } from "../../components/Part.js";
-import { SubTitle, WalletAction } from "../../components/styled/index.js";
-import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { Button } from "../../mui/Button.js";
import { State } from "./index.js";
diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
index c6d3e689c..830541ffa 100644
--- a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
@@ -14,17 +14,14 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import { Amounts } from "@gnu-taler/taler-util";
+import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { format } from "date-fns";
import { Fragment, h, VNode } from "preact";
-import { LogoHeader } from "../../components/LogoHeader.js";
import { Part } from "../../components/Part.js";
import {
- SubTitle,
- SvgIcon,
- WalletAction,
+ SvgIcon
} from "../../components/styled/index.js";
-import { useTranslationContext } from "@gnu-taler/web-util/browser";
+import { TermsOfService } from "../../components/TermsOfService/index.js";
import { Button } from "../../mui/Button.js";
import { TextField } from "../../mui/TextField.js";
import editIcon from "../../svg/edit_24px.inline.svg";
@@ -34,7 +31,6 @@ import {
InvoiceCreationDetails,
} from "../../wallet/Transaction.js";
import { State } from "./index.js";
-import { TermsOfService } from "../../components/TermsOfService/index.js";
export function ReadyView({
exchangeUrl,
diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/views.tsx b/packages/taler-wallet-webextension/src/cta/InvoicePay/views.tsx
index 986b31d77..ef135c1ba 100644
--- a/packages/taler-wallet-webextension/src/cta/InvoicePay/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/InvoicePay/views.tsx
@@ -35,7 +35,6 @@ export function ReadyView(
<Fragment>
<section style={{ textAlign: "left" }}>
<Part title={i18n.str`Subject`} text={<div>{summary}</div>} />
- <Part title={i18n.str`Amount`} text={<Amount value={raw} />} />
<Part
title={i18n.str`Details`}
text={
diff --git a/packages/taler-wallet-webextension/src/cta/Payment/views.tsx b/packages/taler-wallet-webextension/src/cta/Payment/views.tsx
index c00e570f9..1542c8f29 100644
--- a/packages/taler-wallet-webextension/src/cta/Payment/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Payment/views.tsx
@@ -78,7 +78,7 @@ export function BaseView(state: SupportedStates): VNode {
contractTermsHash: "",
// products: contractTerms.products!,
}}
- proposalId={state.payStatus.proposalId}
+ proposalId={state.payStatus.transactionId}
/>
}
kind="neutral"
diff --git a/packages/taler-wallet-webextension/src/cta/Reward/views.tsx b/packages/taler-wallet-webextension/src/cta/Reward/views.tsx
index 3c3190a07..9b4a6c3ef 100644
--- a/packages/taler-wallet-webextension/src/cta/Reward/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Reward/views.tsx
@@ -15,15 +15,13 @@
*/
import { TranslatedString } from "@gnu-taler/taler-util";
+import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { Fragment, h, VNode } from "preact";
import { Amount } from "../../components/Amount.js";
-import { LogoHeader } from "../../components/LogoHeader.js";
import { Part } from "../../components/Part.js";
-import { Link, SubTitle, WalletAction } from "../../components/styled/index.js";
-import { useTranslationContext } from "@gnu-taler/web-util/browser";
+import { TermsOfService } from "../../components/TermsOfService/index.js";
import { Button } from "../../mui/Button.js";
import { State } from "./index.js";
-import { TermsOfService } from "../../components/TermsOfService/index.js";
export function IgnoredView(state: State.Ignored): VNode {
const { i18n } = useTranslationContext();
@@ -42,7 +40,7 @@ export function ReadyView(state: State.Ready): VNode {
<Fragment>
<section>
<p>
- <i18n.Translate>The merchant is offering you a tip</i18n.Translate>
+ <i18n.Translate>The merchant is offering you a reward</i18n.Translate>
</p>
<Part
title={i18n.str`Amount`}
diff --git a/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts b/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts
index b70ca2899..085b7a2ec 100644
--- a/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts
+++ b/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts
@@ -137,7 +137,7 @@ function buildApi(config: Readonly<Info>): API {
* Register the anchor handler when found
*/
function registerProtocolHandler() {
- overrideAllAnchor(document.body)
+ if (document.body) overrideAllAnchor(document.body)
new MutationObserver(checkForNewAnchors).observe(document, {
childList: true,
subtree: true,