Changes in Organization popup

This commit is contained in:
Kartik Sharma 2025-09-22 16:00:24 +05:30
parent 69cc3b9383
commit c609387924
3 changed files with 24 additions and 22 deletions

View File

@ -146,6 +146,7 @@ const ManagOrg = () => {
required
valueKey="id"
options={service?.data || []}
required = {true}
/>
{errors.serviceIds && (
<span className="danger-text">{errors.serviceIds.message}</span>

View File

@ -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" }}
>
<label>{label}</label>
<Label required={required}>{label}</Label>
<div
className="multi-select-dropdown-header"

View File

@ -174,7 +174,6 @@ const AttendancePage = () => {
{/* Search + Organization filter */}
<div className="col-12 col-md-auto mt-2 mt-md-0 ms-md-auto d-flex gap-2 align-items-center">
{/* Organization Dropdown */}
{organizations?.length > 1 && (
<select
className="form-select form-select-sm"
style={{ minWidth: "180px" }}
@ -194,7 +193,6 @@ const AttendancePage = () => {
</option>
))}
</select>
)}
{/* Search Input */}
<input
@ -207,6 +205,7 @@ const AttendancePage = () => {
/>
</div>
</div>
</div>