From 5ac1ec23b5bb85a7e8b6e867538a4b31348a082b Mon Sep 17 00:00:00 2001 From: Yannick M <85898240+mugishayannick@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:02:39 +0200 Subject: [PATCH] sidebar ui fix --- renderer/src/components/Projects/ProjectRow.js | 15 ++++++++------- renderer/src/layouts/projects/SideBar.js | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/renderer/src/components/Projects/ProjectRow.js b/renderer/src/components/Projects/ProjectRow.js index c1cee48b2..310f91eb9 100644 --- a/renderer/src/components/Projects/ProjectRow.js +++ b/renderer/src/components/Projects/ProjectRow.js @@ -59,9 +59,10 @@ const ProjectRow = ({ } return 0; } + return ( - {projects?.length === 0 && ( + {((projects?.length === 0 && filteredProjects?.length > 0) || (!showArchived && projects?.length === archivedProjects?.length)) && (

You don't have any projects yet

@@ -87,12 +88,12 @@ const ProjectRow = ({ )} { - projects?.length !== 0 && filteredProjects?.length === 0 && ( - - -

No projects found. Try a different search term.

- - + projects?.length > 0 && filteredProjects?.length === 0 && ( + + +

No projects found. Try a different search term.

+ + ) } { diff --git a/renderer/src/layouts/projects/SideBar.js b/renderer/src/layouts/projects/SideBar.js index e4ed77b08..d5a484e4f 100644 --- a/renderer/src/layouts/projects/SideBar.js +++ b/renderer/src/layouts/projects/SideBar.js @@ -46,7 +46,7 @@ export default function SideBar() {