From c609387924823853afe840b312eb1c70052874b8 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Mon, 22 Sep 2025 16:00:24 +0530 Subject: [PATCH] Changes in Organization popup --- src/components/Organization/ManagOrg.jsx | 1 + src/components/common/SelectMultiple.jsx | 4 ++- src/pages/Activities/AttendancePage.jsx | 41 ++++++++++++------------ 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/src/components/Organization/ManagOrg.jsx b/src/components/Organization/ManagOrg.jsx index 8ac9f677..0f4aa49e 100644 --- a/src/components/Organization/ManagOrg.jsx +++ b/src/components/Organization/ManagOrg.jsx @@ -146,6 +146,7 @@ const ManagOrg = () => { required valueKey="id" options={service?.data || []} + required = {true} /> {errors.serviceIds && ( {errors.serviceIds.message} diff --git a/src/components/common/SelectMultiple.jsx b/src/components/common/SelectMultiple.jsx index 01b327cc..ff59d89a 100644 --- a/src/components/common/SelectMultiple.jsx +++ b/src/components/common/SelectMultiple.jsx @@ -12,6 +12,7 @@ const SelectMultiple = ({ valueKey = "id", placeholder = "Please select...", IsLoading = false, + required = false }) => { const { setValue, watch } = useFormContext(); const selectedValues = watch(name) || []; @@ -146,7 +147,8 @@ const SelectMultiple = ({ className="multi-select-dropdown-container" style={{ position: "relative" }} > - + +
{ {/* Search + Organization filter */}
{/* Organization Dropdown */} - {organizations?.length > 1 && ( - - )} + {/* Search Input */} { />
+