merchant-backoffice

ZZZ: Inactive/Deprecated
Log | Files | Refs | Submodules | README

commit 68a315b89b57b051e0e5d3757cd11139dda487b0
parent b72cca7504d134572e031e22d1c4c2bdb5aeb067
Author: Sebastian <sebasjm@gmail.com>
Date:   Fri, 20 May 2022 13:46:53 -0300

feat: add logo, email, website

Diffstat:
Mpackages/merchant-backoffice/src/components/instance/DefaultInstanceFormFields.tsx | 19+++++++++++++++++++
Mpackages/merchant-backoffice/src/declaration.d.ts | 6++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/packages/merchant-backoffice/src/components/instance/DefaultInstanceFormFields.tsx b/packages/merchant-backoffice/src/components/instance/DefaultInstanceFormFields.tsx @@ -27,6 +27,7 @@ import { Input } from "../form/Input"; import { InputCurrency } from "../form/InputCurrency"; import { InputDuration } from "../form/InputDuration"; import { InputGroup } from "../form/InputGroup"; +import { InputImage } from "../form/InputImage"; import { InputLocation } from "../form/InputLocation"; import { InputPaytoForm } from "../form/InputPaytoForm"; import { InputWithAddon } from "../form/InputWithAddon"; @@ -58,6 +59,24 @@ export function DefaultInstanceFormFields({ tooltip={i18n`Legal name of the business represented by this instance.`} /> + <Input<Entity> + name="email" + label={i18n`Email`} + tooltip={i18n`Contact email`} + /> + + <Input<Entity> + name="website" + label={i18n`Website URL`} + tooltip={i18n`URL.`} + /> + + <InputImage<Entity> + name="logo" + label={i18n`Logo`} + tooltip={i18n`Logo image.`} + /> + <InputPaytoForm<Entity> name="payto_uris" label={i18n`Bank account`} diff --git a/packages/merchant-backoffice/src/declaration.d.ts b/packages/merchant-backoffice/src/declaration.d.ts @@ -286,6 +286,12 @@ export namespace MerchantBackend { // Merchant name corresponding to this instance. name: string; + email: string; + website: string; + // An optional base64-encoded logo image + logo: ImageDataUrl; + + // "Authentication" header required to authorize management access the instance. // Optional, if not given authentication will be disabled for // this instance (hopefully authentication checks are still