Skip to content

Commit

Permalink
ui for no projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazuh committed Nov 30, 2023
1 parent 98094e1 commit 1b5ec31
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/features/projects-management/ProjectsManagementPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ function ProjectsList() {
return <div>Error: {isError.message}</div>;
}

if (projects.length === 0) {
return (
<div className="w-fit m-auto flex flex-col">
<p className="mb-2 w-full">You don't have any projects yet.</p>
<div className="w-full flex justify-center">
<ProjectsCreationButton />
</div>
</div>
);
}

return (
<ul className="pl-3">
{projects.map((project) => (
Expand Down

0 comments on commit 1b5ec31

Please sign in to comment.