From b2376bbad4306aaeeb0809f80d3070a7a131dc70 Mon Sep 17 00:00:00 2001 From: Kartik sharma Date: Tue, 8 Jul 2025 15:23:56 +0530 Subject: [PATCH] Assigned Task Should Be Visible to Normal User Without Showing Assign Button. --- src/components/Activities/InfraPlanning.jsx | 46 ++++++++------------- 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/src/components/Activities/InfraPlanning.jsx b/src/components/Activities/InfraPlanning.jsx index 47c4dba9..8cdf41db 100644 --- a/src/components/Activities/InfraPlanning.jsx +++ b/src/components/Activities/InfraPlanning.jsx @@ -43,41 +43,29 @@ const InfraPlanning = () => },[reloadedData]) + // Show only "No Result Found" message if no data is present + if (!project_deatilsLoader && projects_Details?.buildings?.length === 0) { + return
No Result Found
; + } + + // Optionally show loading indicator + if (project_deatilsLoader) { + return
Loading...
; + } + return (
-
-
-
- {/*
-
- -
- -
*/} -
- {project_deatilsLoader && (

Loading...

)} - {( !project_deatilsLoader && projects_Details?.buildings.length === 0 ) && (

No Result Found

)} - - - - {(!project_deatilsLoader && projects_Details?.buildings?.length > 0) && ()} +
+
+
+
-
); };