aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui')
-rw-r--r--packages/merchant-backoffice-ui/package.json1
-rw-r--r--packages/merchant-backoffice-ui/src/Application.tsx2
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx2
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx12
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx2
5 files changed, 10 insertions, 9 deletions
diff --git a/packages/merchant-backoffice-ui/package.json b/packages/merchant-backoffice-ui/package.json
index 74a9a823a..84ea483d8 100644
--- a/packages/merchant-backoffice-ui/package.json
+++ b/packages/merchant-backoffice-ui/package.json
@@ -5,6 +5,7 @@
"license": "AGPL-3.0-or-later",
"type": "module",
"scripts": {
+ "clean": "rm -rf dist tsconfig.tsbuildinfo",
"build": "./build.mjs",
"check": "tsc",
"compile": "tsc && ./build.mjs",
diff --git a/packages/merchant-backoffice-ui/src/Application.tsx b/packages/merchant-backoffice-ui/src/Application.tsx
index 27ae26de5..e78a6fc0b 100644
--- a/packages/merchant-backoffice-ui/src/Application.tsx
+++ b/packages/merchant-backoffice-ui/src/Application.tsx
@@ -94,7 +94,7 @@ function ApplicationStatusRoutes(): VNode {
<NotConnectedAppMenu title="Error" />
<NotificationCard
notification={{
- message: i18n.str`Could not find /config enpoint on this URL`,
+ message: i18n.str`Could not find /config endpoint on this URL`,
type: "ERROR",
description: `Check the URL or contact the system administrator.`,
}}
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx
index fbfd023c1..62ceaa24b 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx
@@ -329,7 +329,7 @@ export function CreatePage({
// if there is no default pay deadline
const noDefault_payDeadline = !instance_default.payments || !instance_default.payments.pay_deadline
- // and there is no defailt wire deadline
+ // and there is no default wire deadline
const noDefault_wireDeadline = !instance_default.payments || !instance_default.payments.wire_transfer_deadline
// user required to set the taler options
const requiresSomeTalerOptions = noDefault_payDeadline || noDefault_wireDeadline
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx
index d22a9e4d4..549e7581f 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx
@@ -71,9 +71,9 @@ export function DetailPage({ instanceId, hasToken, onBack, onNewToken, onClearTo
async function submitForm() {
if (hasErrors) return;
- const ot = hasToken ? `secret-token:${form.old_token}` as AccessToken : undefined;
- const nt = `secret-token:${form.new_token}` as AccessToken;
- onNewToken(ot, nt)
+ const oldToken = hasToken ? `secret-token:${form.old_token}` as AccessToken : undefined;
+ const newToken = `secret-token:${form.new_token}` as AccessToken;
+ onNewToken(oldToken, newToken)
}
return (
@@ -93,7 +93,7 @@ export function DetailPage({ instanceId, hasToken, onBack, onNewToken, onClearTo
</div>
</section>
<hr />
-
+
{!hasToken &&
<NotificationCard
notification={{
@@ -127,8 +127,8 @@ export function DetailPage({ instanceId, hasToken, onBack, onNewToken, onClearTo
class="button"
onClick={() => {
if (hasToken) {
- const ot = `secret-token:${form.old_token}` as AccessToken;
- onClearToken(ot)
+ const oldToken = `secret-token:${form.old_token}` as AccessToken;
+ onClearToken(oldToken)
} else {
onClearToken(undefined)
}
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx
index 434d69412..bfa2a883e 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx
@@ -120,7 +120,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode {
<p>
The text below support <a target="_blank" rel="noreferrer" href="https://mustache.github.io/mustache.5.html">mustache</a> template engine. Any string
between <pre style={{ display: "inline", padding: 0 }}>&#123;&#123;</pre> and <pre style={{ display: "inline", padding: 0 }}>&#125;&#125;</pre> will
- be replaced with replaced with the value of the correspoding variable.
+ be replaced with replaced with the value of the corresponding variable.
</p>
<p>
For example <pre style={{ display: "inline", padding: 0 }}>&#123;&#123;contract_terms.amount&#125;&#125;</pre> will be replaced