From 9de0b1a0df506c615ea8d0cb5695ed630c806613 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Fri, 10 Oct 2025 16:00:52 +0530 Subject: [PATCH] Project List view UI implementation. --- src/components/Project/ProjectListView.jsx | 241 +++++++++++---------- 1 file changed, 121 insertions(+), 120 deletions(-) diff --git a/src/components/Project/ProjectListView.jsx b/src/components/Project/ProjectListView.jsx index fb81428f..0c1a5c41 100644 --- a/src/components/Project/ProjectListView.jsx +++ b/src/components/Project/ProjectListView.jsx @@ -131,148 +131,149 @@ const ProjectListView = ({ const handleMoveDetails = (project) => { dispatch(setProjectId(project)); - localStorage.setItem("lastActiveProjectTab","profile") + localStorage.setItem("lastActiveProjectTab", "profile") navigate("/projects/details"); }; return (
- - - - {projectColumns.map((col) => ( - - ))} - - - - - {currentItems?.map((project) => ( - +
+
- {col.label} - Action
+ + {projectColumns.map((col) => ( - + ))} - + + + {currentItems?.map((project) => ( + + {projectColumns.map((col) => ( + + ))} + - - ))} - -
- {col.getValue - ? col.getValue(project) - : project[col.key] || "N/A"} - + {col.label} + -
-
- - -
    -
  • handleMoveDetails(project.id)}> - - - View details - -
  • + {col.getValue + ? col.getValue(project) + : project[col.key] || "N/A"} +
+
+ + -
-
+ +
+ + + ))} + + - {isLoading && ( -
- {" "} - {isLoading &&

Loading...

} - {!isLoading && filteredProjects.length === 0 && ( + {isLoading && ( +
+ {" "} + {isLoading &&

Loading...

} + {!isLoading && filteredProjects.length === 0 && ( +

No projects found.

+ )} +
+ )} + {!isLoading && currentItems.length === 0 && ( +

No projects found.

- )} -
- )} - {!isLoading && currentItems.length === 0 && ( -
-

No projects found.

-
- )} - {!isLoading && totalPages > 1 && ( -
+ )} + {!isLoading && totalPages > 1 && ( + - )} + + + )} + ); };