[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant-backoffice] 02/02: fix lint errors
From: |
gnunet |
Subject: |
[taler-merchant-backoffice] 02/02: fix lint errors |
Date: |
Mon, 10 May 2021 16:29:39 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository merchant-backoffice.
commit 84cd616c126d2ae723f2fca19d6ad53d6569ead1
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon May 10 11:29:05 2021 -0300
fix lint errors
---
packages/frontend/src/paths/admin/create/CreatePage.tsx | 12 ++++++------
.../paths/instance/orders/create/NonInventoryProductForm.tsx | 10 +++++-----
packages/frontend/src/paths/instance/products/list/Table.tsx | 6 +++---
.../src/paths/instance/transfers/create/CreatePage.tsx | 2 +-
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
index 285f72d..9592a90 100644
--- 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
index adcd5b9..1226f43 100644
---
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
index 72f20b2..7f07cb6 100644
--- 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
index 78c3d08..52cf4e4 100644
--- 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">
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.