summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-04-15 12:36:40 -0300
committerSebastian <sebasjm@gmail.com>2024-04-15 12:36:40 -0300
commite07f801aa0d22d84f88ea149bfba82b73c2c9f9c (patch)
tree6395c14c5bc38e39fa51d57450fee21f05d08472 /packages
parenta7c8f0f3edd738a59d719105cda3aa8821886b90 (diff)
downloadwallet-core-e07f801aa0d22d84f88ea149bfba82b73c2c9f9c.tar.gz
wallet-core-e07f801aa0d22d84f88ea149bfba82b73c2c9f9c.tar.bz2
wallet-core-e07f801aa0d22d84f88ea149bfba82b73c2c9f9c.zip
fix #8470
Diffstat (limited to 'packages')
-rw-r--r--packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx31
1 files changed, 19 insertions, 12 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx b/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx
index dd41b6fbd..864d09f48 100644
--- a/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx
+++ b/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx
@@ -19,11 +19,9 @@
* @author Sebastian Javier Marchano (sebasjm)
*/
-import {
- useMerchantApiContext,
- useTranslationContext,
-} from "@gnu-taler/web-util/browser";
+import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { Fragment, VNode, h } from "preact";
+import { useSessionContext } from "../../context/session.js";
import { Entity } from "../../paths/admin/create/CreatePage.js";
import { Input } from "../form/Input.js";
import { InputDuration } from "../form/InputDuration.js";
@@ -33,7 +31,7 @@ import { InputLocation } from "../form/InputLocation.js";
import { InputSelector } from "../form/InputSelector.js";
import { InputToggle } from "../form/InputToggle.js";
import { InputWithAddon } from "../form/InputWithAddon.js";
-import { useSessionContext } from "../../context/session.js";
+import { TextField } from "../form/TextField.js";
export function DefaultInstanceFormFields({
readonlyId,
@@ -62,11 +60,20 @@ export function DefaultInstanceFormFields({
tooltip={i18n.str`Legal name of the business represented by this instance.`}
/>
+ <TextField name="asdasd" label="">
+ <i18n.Translate>
+ Choose individual if you don't have or are not required to have legal business permission.
+ </i18n.Translate>
+ </TextField>
+
<InputSelector<Entity>
name="user_type"
- label={i18n.str`Type`}
+ label={i18n.str`Selling as`}
tooltip={i18n.str`Different type of account can have different rules and requirements.`}
values={["business", "individual"]}
+ toStr={(d: string) => {
+ return d.toUpperCase();
+ }}
/>
<Input<Entity>
@@ -87,12 +94,6 @@ export function DefaultInstanceFormFields({
tooltip={i18n.str`Logo image.`}
/>
- <InputToggle<Entity>
- name="use_stefan"
- label={i18n.str`Pay transaction fee`}
- tooltip={i18n.str`Assume the cost of the transaction of let the user pay for it.`}
- />
-
<InputGroup
name="address"
label={i18n.str`Address`}
@@ -109,6 +110,12 @@ export function DefaultInstanceFormFields({
<InputLocation name="jurisdiction" />
</InputGroup>
+ <InputToggle<Entity>
+ name="use_stefan"
+ label={i18n.str`Pay transaction fee`}
+ tooltip={i18n.str`Assume the cost of the transaction of let the user pay for it.`}
+ />
+
<InputDuration<Entity>
name="default_pay_delay"
label={i18n.str`Default payment delay`}