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 && ( + - )} + + + )} + ); };