From e1d86816a7c07cb8ca2d54676d5cdbbe513f2ba7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 4 Sep 2023 14:17:55 -0300 Subject: backoffcie new version, lot of changes --- .../instance/DefaultInstanceFormFields.tsx | 31 +++++----------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx') diff --git a/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx b/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx index 24380ce98..b75dc83b3 100644 --- a/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx +++ b/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx @@ -24,14 +24,13 @@ import { Fragment, h, VNode } from "preact"; import { useBackendContext } from "../../context/backend.js"; import { Entity } from "../../paths/admin/create/CreatePage.js"; import { Input } from "../form/Input.js"; -import { InputCurrency } from "../form/InputCurrency.js"; import { InputDuration } from "../form/InputDuration.js"; import { InputGroup } from "../form/InputGroup.js"; import { InputImage } from "../form/InputImage.js"; import { InputLocation } from "../form/InputLocation.js"; -import { InputPaytoForm } from "../form/InputPaytoForm.js"; -import { InputWithAddon } from "../form/InputWithAddon.js"; import { InputSelector } from "../form/InputSelector.js"; +import { InputToggle } from "../form/InputToggle.js"; +import { InputWithAddon } from "../form/InputWithAddon.js"; export function DefaultInstanceFormFields({ readonlyId, @@ -85,28 +84,10 @@ export function DefaultInstanceFormFields({ tooltip={i18n.str`Logo image.`} /> - - name="accounts" - label={i18n.str`Bank account`} - tooltip={i18n.str`URI specifying bank account for crediting revenue.`} - /> - - - name="default_max_deposit_fee" - label={i18n.str`Default max deposit fee`} - tooltip={i18n.str`Maximum deposit fees this merchant is willing to pay per order by default.`} - /> - - - name="default_max_wire_fee" - label={i18n.str`Default max wire fee`} - tooltip={i18n.str`Maximum wire fees this merchant is willing to pay per wire transfer by default.`} - /> - - - name="default_wire_fee_amortization" - label={i18n.str`Default wire fee amortization`} - tooltip={i18n.str`Number of orders excess wire transfer fees will be divided by to compute per order surcharge.`} + + 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.`} />