diff --git a/src/components/Activities/InfraPlanning.jsx b/src/components/Activities/InfraPlanning.jsx index 5dce91c4..e7a4003a 100644 --- a/src/components/Activities/InfraPlanning.jsx +++ b/src/components/Activities/InfraPlanning.jsx @@ -33,7 +33,7 @@ const InfraPlanning = () => { const selectedService = useCurrentService(); const { projectInfra, isLoading, isError, error, isFetched } = - useProjectInfra(selectedProject, selectedService || "" ); + useProjectInfra(selectedProject, selectedService || ""); const canManageInfra = useHasUserPermission(MANAGE_PROJECT_INFRA); const canApproveTask = useHasUserPermission(APPROVE_TASK); @@ -62,9 +62,13 @@ const InfraPlanning = () => { if (isFetched && (!projectInfra || projectInfra.length === 0)) { return ( -
-

No Result Found

+
+

No Result Found

+ ); } diff --git a/src/components/gallary/ImageGalleryListView.jsx b/src/components/gallary/ImageGalleryListView.jsx index 945736e3..6973f6f0 100644 --- a/src/components/gallary/ImageGalleryListView.jsx +++ b/src/components/gallary/ImageGalleryListView.jsx @@ -28,13 +28,21 @@ const ImageGalleryListView = ({filter}) => { } }; - if (!data?.data?.length && !isLoading) { - return ( -

- {selectedProject ? " No images match the selected filters.":"Please Select Project!"} -

- ); - } + if (!data?.data?.length && !isLoading) { + return ( +
+ + {selectedProject + ? "No images match the selected filters." + : "Please Select Project!"} + +
+ ); +} + if (isLoading) { return ( diff --git a/src/pages/Activities/TaskPlannng.jsx b/src/pages/Activities/TaskPlannng.jsx index 8728240f..41890b9d 100644 --- a/src/pages/Activities/TaskPlannng.jsx +++ b/src/pages/Activities/TaskPlannng.jsx @@ -38,7 +38,7 @@ const TaskPlanning = () => { ]} /> -
+
{data?.length === 0 ? (

Service not assigned