gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] 03/05: fix: age as number


From: gnunet
Subject: [taler-merchant-backoffice] 03/05: fix: age as number
Date: Fri, 20 May 2022 18:47:18 +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 c4a7b72c8f2dd114a36ab74b47025be1ba50a203
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri May 20 13:46:19 2022 -0300

    fix: age as number
---
 .../merchant-backoffice/src/components/product/ProductForm.tsx     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/packages/merchant-backoffice/src/components/product/ProductForm.tsx 
b/packages/merchant-backoffice/src/components/product/ProductForm.tsx
index e177caf..9434d3d 100644
--- a/packages/merchant-backoffice/src/components/product/ProductForm.tsx
+++ b/packages/merchant-backoffice/src/components/product/ProductForm.tsx
@@ -33,6 +33,7 @@ import { FormProvider, FormErrors } from 
"../form/FormProvider";
 import { Input } from "../form/Input";
 import { InputCurrency } from "../form/InputCurrency";
 import { InputImage } from "../form/InputImage";
+import { InputNumber } from "../form/InputNumber";
 import { InputStock, Stock } from "../form/InputStock";
 import { InputTaxes } from "../form/InputTaxes";
 import { InputWithAddon } from "../form/InputWithAddon";
@@ -51,8 +52,8 @@ export function ProductForm({ onSubscribe, initial, 
alreadyExist }: Props) {
     description_i18n: {},
     taxes: [],
     next_restock: { t_s: "never" },
-    ...initial,
     price: ":0",
+    ...initial,
     stock:
       !initial || initial.total_stock === -1
         ? undefined
@@ -143,9 +144,9 @@ export function ProductForm({ onSubscribe, initial, 
alreadyExist }: Props) {
           label={i18n`Description`}
           tooltip={i18n`product description for customers`}
         />
-        <Input<Entity>
+        <InputNumber<Entity>
           name="minimum_age"
-          label={i18n`Ages restricted`}
+          label={i18n`Age restricted`}
           tooltip={i18n`is this product restricted for customer below certain 
age?`}
         />
         <Input<Entity>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]