status añadido, cambios en el responsive al ver el producto
This commit is contained in:
@@ -17,6 +17,7 @@ export const product = z.object({
|
||||
stock: z.number(),
|
||||
price: z.string(),
|
||||
urlImg: z.string(),
|
||||
status: z.string(),
|
||||
userId: z.number().optional()
|
||||
})
|
||||
|
||||
@@ -32,9 +33,11 @@ export const editInventory = z.object({
|
||||
description: z.string().min(10, { message: "Debe de tener 10 o más caracteres" }),
|
||||
stock: z.string().transform(val => Number(val)).pipe(z.number(
|
||||
{ invalid_type_error: 'El stock debe ser un número' }).min(0, { message: "El stock debe ser mayor a 0" })
|
||||
),
|
||||
),
|
||||
address: z.string().min(5, { message: "Debe de tener 5 o más caracteres" }),
|
||||
price: z.string(),
|
||||
urlImg: z.string(),
|
||||
status: z.string().min(1, { message: "Debe de seleccionar un valor" }),
|
||||
userId: z.number().optional(),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user