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 }) => ( -
-
- - -
- -
- -