diff options
author | Sebastian <sebasjm@gmail.com> | 2021-05-04 15:15:28 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-05-04 15:15:49 -0300 |
commit | 7fc5f0aa0b6e738521ee7339d1f0f0b20db9915d (patch) | |
tree | ebd5b26f1d0f4355d5b51ffd39ef61cbdbce1dbb /packages/frontend/src/paths/admin/create/CreatePage.tsx | |
parent | 6d040035819e5c90a1bbe7940f4d204b2de5c1f4 (diff) | |
download | merchant-backoffice-7fc5f0aa0b6e738521ee7339d1f0f0b20db9915d.tar.gz merchant-backoffice-7fc5f0aa0b6e738521ee7339d1f0f0b20db9915d.tar.bz2 merchant-backoffice-7fc5f0aa0b6e738521ee7339d1f0f0b20db9915d.zip |
transfer list and notification
Diffstat (limited to 'packages/frontend/src/paths/admin/create/CreatePage.tsx')
-rw-r--r-- | packages/frontend/src/paths/admin/create/CreatePage.tsx | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/packages/frontend/src/paths/admin/create/CreatePage.tsx b/packages/frontend/src/paths/admin/create/CreatePage.tsx index 58a294e..2c479ca 100644 --- a/packages/frontend/src/paths/admin/create/CreatePage.tsx +++ b/packages/frontend/src/paths/admin/create/CreatePage.tsx @@ -27,6 +27,7 @@ import { Input } from "../../../components/form/Input"; import { InputCurrency } from "../../../components/form/InputCurrency"; import { InputDuration } from "../../../components/form/InputDuration"; import { InputGroup } from "../../../components/form/InputGroup"; +import { InputLocation } from "../../../components/form/InputLocation"; import { InputPayto } from "../../../components/form/InputPayto"; import { InputSecured } from "../../../components/form/InputSecured"; import { InputWithAddon } from "../../../components/form/InputWithAddon"; @@ -87,7 +88,7 @@ export function CreatePage({ onCreate, onBack, forceId }: Props): VNode { <InputSecured<Entity> name="auth_token" label={i18n`Auth token`} /> - <InputPayto<Entity> name="payto_uris" label={i18n`Account address`} /> + <InputPayto<Entity> name="payto_uris" label={i18n`Account address`} help="payto://x-taler-bank/bank.taler:5882/blogger" /> <InputCurrency<Entity> name="default_max_deposit_fee" label={i18n`Default max deposit fee`} /> @@ -96,37 +97,11 @@ export function CreatePage({ onCreate, onBack, forceId }: Props): VNode { <Input<Entity> name="default_wire_fee_amortization" label={i18n`Default wire fee amortization`} /> <InputGroup name="address" label={i18n`Address`}> - <Input name="address.country" label={i18n`Country`} /> - <Input name="address.address_lines" inputType="multiline" - label={i18n`Address`} - toStr={(v: string[] | undefined) => !v ? '' : v.join('\n')} - fromStr={(v: string) => v.split('\n')} - /> - <Input name="address.building_number" label={i18n`Building number`} /> - <Input name="address.building_name" label={i18n`Building name`} /> - <Input name="address.street" label={i18n`Street`} /> - <Input name="address.post_code" label={i18n`Post code`} /> - <Input name="address.town_location" label={i18n`Town location`} /> - <Input name="address.town" label={i18n`Town`} /> - <Input name="address.district" label={i18n`District`} /> - <Input name="address.country_subdivision" label={i18n`Country subdivision`} /> + <InputLocation name="address" /> </InputGroup> <InputGroup name="jurisdiction" label={i18n`Jurisdiction`}> - <Input name="jurisdiction.country" label={i18n`Country`} /> - <Input name="jurisdiction.address_lines" inputType="multiline" - label={i18n`Address`} - toStr={(v: string[] | undefined) => !v ? '' : v.join('\n')} - fromStr={(v: string) => v.split('\n')} - /> - <Input name="jurisdiction.building_number" label={i18n`Building number`} /> - <Input name="jurisdiction.building_name" label={i18n`Building name`} /> - <Input name="jurisdiction.street" label={i18n`Street`} /> - <Input name="jurisdiction.post_code" label={i18n`Post code`} /> - <Input name="jurisdiction.town_location" label={i18n`Town location`} /> - <Input name="jurisdiction.town" label={i18n`Town`} /> - <Input name="jurisdiction.district" label={i18n`District`} /> - <Input name="jurisdiction.country_subdivision" label={i18n`Country subdivision`} /> + <InputLocation name="jurisdiction" /> </InputGroup> <InputDuration<Entity> name="default_pay_delay" label={i18n`Default pay delay`} /> |