From a85b90d28377b02570bb9965b100d26eda5541de Mon Sep 17 00:00:00 2001 From: Satyam Rastogi Date: Fri, 15 May 2026 15:19:51 +0530 Subject: [PATCH] redesigned createItemModal with responsive and light /dark mode --- src/components/owner/CreateItemModal.jsx | 135 ++++++++++++----------- 1 file changed, 73 insertions(+), 62 deletions(-) diff --git a/src/components/owner/CreateItemModal.jsx b/src/components/owner/CreateItemModal.jsx index 89936d1..9f39182 100644 --- a/src/components/owner/CreateItemModal.jsx +++ b/src/components/owner/CreateItemModal.jsx @@ -20,84 +20,95 @@ const CreateItemModal = ({ isOpen, onClose, title, icon: Icon, iconColor = "text onClose(); }; + const inputBase = "w-full bg-white dark:bg-[#18181b] border border-zinc-200 dark:border-white/10 rounded-xl px-4 py-3 text-sm text-zinc-900 dark:text-white placeholder-zinc-400 dark:placeholder-zinc-600 focus:outline-none focus:border-[#00f0ff] focus:ring-1 focus:ring-[#00f0ff] transition-all"; + return createPortal( -
-
-
+
+
+
{/* Header */} -
-
+
+
{Icon && ( -
+
)} -

{title}

+

{title}

-
{/* Content */} -
- {fields.map((field, i) => ( -
- - {field.type === 'textarea' ? ( -