first commit
This commit is contained in:
parent
1e339c08db
commit
e28e37e62e
|
|
@ -97,7 +97,7 @@ export default function ProductModal({
|
||||||
const watchedImages = form.watch("images");
|
const watchedImages = form.watch("images");
|
||||||
const watchedTags = form.watch("tags");
|
const watchedTags = form.watch("tags");
|
||||||
|
|
||||||
const conditions = ["New", "Like New", "Good", "Fair", "Poor"];
|
const conditions = ["New", "Used - like new", "Used - good", "Used - fair"];
|
||||||
|
|
||||||
const handleImageUpload = (e: React.ChangeEvent<HTMLInputElement>) => {
|
const handleImageUpload = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
const files = e.target.files;
|
const files = e.target.files;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
import { Product } from '@/entities/product.entity';
|
import { Product } from '@/entities/product.entity';
|
||||||
import { SystemLang } from '@/system/lang/system.lang';
|
import { SystemLang } from '@/system/lang/system.lang';
|
||||||
import { IsUniqueInDatabase } from '@/system/validators/decorators/is-unique-in-database.decorator';
|
import { IsUniqueInDatabase } from '@/system/validators/decorators/is-unique-in-database.decorator';
|
||||||
import { IsValidBase64Image } from '@/system/validators/decorators/is-valid-base64-image';
|
|
||||||
import { Type } from 'class-transformer';
|
import { Type } from 'class-transformer';
|
||||||
import {
|
import {
|
||||||
ArrayMinSize,
|
|
||||||
ArrayNotEmpty,
|
ArrayNotEmpty,
|
||||||
IsArray,
|
IsArray,
|
||||||
IsNumber,
|
IsNumber,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue