commit 84cd616c126d2ae723f2fca19d6ad53d6569ead1 parent a28df73419162d8b5af13b789318704f80f10d63 Author: Sebastian <sebasjm@gmail.com> Date: Mon, 10 May 2021 11:29:05 -0300 fix lint errors Diffstat:
4 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/packages/frontend/src/paths/admin/create/CreatePage.tsx b/packages/frontend/src/paths/admin/create/CreatePage.tsx @@ -86,15 +86,15 @@ export function CreatePage({ onCreate, onBack, forceId }: Props): VNode { <Input<Entity> name="name" label={i18n`Name`} tooltip={i18n`descriptive name`} /> - <InputSecured<Entity> name="auth_token" label={i18n`Auth token`} tooltip={i18n`useful to prevent other to change the instance configuration`}/> + <InputSecured<Entity> name="auth_token" label={i18n`Auth token`} tooltip={i18n`useful to prevent other to change the instance configuration`} /> - <InputPayto<Entity> name="payto_uris" label={i18n`Account address`} help="x-taler-bank/bank.taler:5882/blogger" tooltip={i18n`where the money will be sent`}/> + <InputPayto<Entity> name="payto_uris" label={i18n`Account address`} help="x-taler-bank/bank.taler:5882/blogger" tooltip={i18n`where the money will be sent`} /> <InputCurrency<Entity> name="default_max_deposit_fee" label={i18n`Default max deposit fee`} tooltip={i18n`max deposit fee when an order has not override it`} /> - <InputCurrency<Entity> name="default_max_wire_fee" label={i18n`Default max wire fee`} tooltip={i18n`max wire fee when the order has not override it`}/> + <InputCurrency<Entity> name="default_max_wire_fee" label={i18n`Default max wire fee`} tooltip={i18n`max wire fee when the order has not override it`} /> - <Input<Entity> name="default_wire_fee_amortization" label={i18n`Default wire fee amortization`} tooltip={i18n`max wire fee amortization when the order has not override it`}/> + <Input<Entity> name="default_wire_fee_amortization" label={i18n`Default wire fee amortization`} tooltip={i18n`max wire fee amortization when the order has not override it`} /> <InputGroup name="address" label={i18n`Address`} tooltip={i18n`where is the merchant physical located`}> <InputLocation name="address" /> @@ -104,9 +104,9 @@ export function CreatePage({ onCreate, onBack, forceId }: Props): VNode { <InputLocation name="jurisdiction" /> </InputGroup> - <InputDuration<Entity> name="default_pay_delay" label={i18n`Default pay delay`} tooltip={i18n`max time to pay if the order doest not override it`}/> + <InputDuration<Entity> name="default_pay_delay" label={i18n`Default pay delay`} tooltip={i18n`max time to pay if the order doest not override it`} /> - <InputDuration<Entity> name="default_wire_transfer_delay" label={i18n`Default wire transfer delay`} tooltip={i18n`min time to wait the transfer if the merchant doest not override it`}/> + <InputDuration<Entity> name="default_wire_transfer_delay" label={i18n`Default wire transfer delay`} tooltip={i18n`min time to wait the transfer if the merchant doest not override it`} /> </FormProvider> diff --git a/packages/frontend/src/paths/instance/orders/create/NonInventoryProductForm.tsx b/packages/frontend/src/paths/instance/orders/create/NonInventoryProductForm.tsx @@ -93,7 +93,7 @@ export function ProductForm({ onSubscribe, initial }: ProductProps) { const submit = useCallback((): Entity | undefined => { try { const validated = schema.validateSync(value, { abortEarly: false }) - const result : MerchantBackend.Product = { + const result: MerchantBackend.Product = { description: validated.description, image: validated.image, price: validated.price, @@ -119,11 +119,11 @@ export function ProductForm({ onSubscribe, initial }: ProductProps) { <FormProvider<NonInventoryProduct> name="product" errors={errors} object={value} valueHandler={valueHandler} > <InputImage<NonInventoryProduct> name="image" label={i18n`Image`} tooltip={i18n`photo of the product`} /> - <Input<NonInventoryProduct> name="description" inputType="multiline" label={i18n`Description`} tooltip={i18n`full product description`}/> - <Input<NonInventoryProduct> name="unit" label={i18n`Unit`} tooltip={i18n`name of the product unit`}/> - <InputCurrency<NonInventoryProduct> name="price" label={i18n`Price`} tooltip={i18n`the amount in the current currency`}/> + <Input<NonInventoryProduct> name="description" inputType="multiline" label={i18n`Description`} tooltip={i18n`full product description`} /> + <Input<NonInventoryProduct> name="unit" label={i18n`Unit`} tooltip={i18n`name of the product unit`} /> + <InputCurrency<NonInventoryProduct> name="price" label={i18n`Price`} tooltip={i18n`the amount in the current currency`} /> - <InputNumber<NonInventoryProduct> name="quantity" label={i18n`Quantity`} tooltip={i18n`how many products will be added`}/> + <InputNumber<NonInventoryProduct> name="quantity" label={i18n`Quantity`} tooltip={i18n`how many products will be added`} /> <InputTaxes<NonInventoryProduct> name="taxes" label={i18n`Taxes`} /> diff --git a/packages/frontend/src/paths/instance/products/list/Table.tsx b/packages/frontend/src/paths/instance/products/list/Table.tsx @@ -201,8 +201,8 @@ function FastProductWithManagedStockUpdateForm({ product, onUpdate, onCancel }: return <Fragment> <FormProvider<FastProductUpdate> name="added" errors={errors} object={value} valueHandler={valueHandler as any} > - <InputNumber<FastProductUpdate> name="incoming" label={i18n`Incoming`} tooltip={i18n`add more elements into the inventory`}/> - <InputNumber<FastProductUpdate> name="lost" label={i18n`Lost`} tooltip={i18n`report elements lost in the inventory`}/> + <InputNumber<FastProductUpdate> name="incoming" label={i18n`Incoming`} tooltip={i18n`add more elements into the inventory`} /> + <InputNumber<FastProductUpdate> name="lost" label={i18n`Lost`} tooltip={i18n`report elements lost in the inventory`} /> <div class="field is-horizontal"> <div class="field-label is-normal" /> <div class="field-body is-flex-grow-3"> @@ -211,7 +211,7 @@ function FastProductWithManagedStockUpdateForm({ product, onUpdate, onCancel }: </div> </div> </div> - <InputCurrency<FastProductUpdate> name="price" label={i18n`Price`} tooltip={i18n`new price for the product`}/> + <InputCurrency<FastProductUpdate> name="price" label={i18n`Price`} tooltip={i18n`new price for the product`} /> </FormProvider> <div class="buttons is-right mt-5"> diff --git a/packages/frontend/src/paths/instance/transfers/create/CreatePage.tsx b/packages/frontend/src/paths/instance/transfers/create/CreatePage.tsx @@ -83,7 +83,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode { label={i18n`Exchange URL`} tooltip={i18n`exchange that made the transfer`} help="http://exchange.taler:8081/" /> - <InputCurrency<Entity> name="credit_amount" label={i18n`Amount`} tooltip={i18n`how much money transferred into the account`}/> + <InputCurrency<Entity> name="credit_amount" label={i18n`Amount`} tooltip={i18n`how much money transferred into the account`} /> </FormProvider> <div class="buttons is-right mt-5">