From bfd31f9d35cd57991e6ad1dcbb34fbdc278b2ad6 Mon Sep 17 00:00:00 2001 From: g Date: Mon, 12 Jan 2026 07:02:08 +0000 Subject: [PATCH] Update product-modal.tsx --- components/modals/product-modal.tsx | 271 +++++++++++++++------------- 1 file changed, 141 insertions(+), 130 deletions(-) diff --git a/components/modals/product-modal.tsx b/components/modals/product-modal.tsx index dda246b..18b79b8 100644 --- a/components/modals/product-modal.tsx +++ b/components/modals/product-modal.tsx @@ -22,6 +22,7 @@ import type React from "react"; import { Plus } from "lucide-react"; import { apiRequest } from "@/lib/api"; import { Switch } from "@/components/ui/switch"; +import { Badge } from "@/components/ui/badge"; type CategorySelectProps = { categories: { _id: string; name: string; parentId?: string }[]; @@ -213,141 +214,40 @@ const ProductBasicInfo: React.FC<{ setProductData: React.Dispatch>; onAddCategory: (newCategory: { _id: string; name: string; parentId?: string }) => void; }> = ({ productData, handleChange, categories, setProductData, onAddCategory }) => ( -
-
- - -
- -
- -