diff --git a/src/components/Organization/AssignOrg.jsx b/src/components/Organization/AssignOrg.jsx index b35402ed..06f86431 100644 --- a/src/components/Organization/AssignOrg.jsx +++ b/src/components/Organization/AssignOrg.jsx @@ -89,179 +89,194 @@ const AssignOrg = ({ setStep }) => { if (isMasterserviceLoading || isLoading) return
Loading....
; + const showTwoColumns = startStep === 3 && flowType !== "default"; return (
- {/* Organization Info Display */} -
-
-
- logo

{orgData.name}

-
-
- + {/* Left Column */} +
+ {/* Organization Info Display */} +
+
+ logo +

{orgData.name}

+
-
-
Organization Info
- {/* Contact Info */} -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {/* Form */} -
-
- {/* Show fields only if flowType is NOT default */} - {flowType !== "default" && ( - <> - {/* Organization Type */} -
- -
- {orgType?.data.map((type) => ( -
- - -
- ))} -
- {errors.organizationTypeId && ( - - {errors.organizationTypeId.message} - - )} -
+ {/* Assigned Services */} + {flowType !== "default" && projectServices?.length > 0 && ( +
+ - {/* Services */} -
- - {mergedServices?.map((service) => ( -
- - -
- ))} - {errors.serviceIds && ( -
- {errors.serviceIds.message} -
- )} -
- - )} - - {/* Buttons: Always visible */} -
- - +
+ {projectServices.map((service) => ( + + {service.name} + + ))} +
+
- + )}
+ + {/* Right Column */} + {showTwoColumns && ( +
+ {/* Form Section */} +
+ {flowType !== "default" && ( + <> + {/* Organization Type */} +
+ +
+ {orgType?.data.map((type) => ( +
+ + +
+ ))} +
+ {errors.organizationTypeId && ( + {errors.organizationTypeId.message} + )} +
+ + {/* Services */} +
+ + + {/* FIXED HEIGHT + SCROLLBAR */} +
+ {mergedServices + ?.slice() // copy array + .sort((a, b) => a.name.localeCompare(b.name)) + .map((service) => ( +
+
+
+ + +
+ + + + {service.description?.length > 80 + ? service.description.substring(0, 80) + "..." + : service.description} + +
+
+
+
+ ))} +
+ {errors.serviceIds && ( +
{errors.serviceIds.message}
+ )} +
+ + )} +
+
+ )} + {/* Buttons */} +
+ + +
+ ); }; diff --git a/src/components/Organization/ManagOrg.jsx b/src/components/Organization/ManagOrg.jsx index bd38cd9c..c1d3c5f6 100644 --- a/src/components/Organization/ManagOrg.jsx +++ b/src/components/Organization/ManagOrg.jsx @@ -148,8 +148,8 @@ const ManagOrg = () => { )}
-
-