From 8a9ff310096208c6b6dee6a5aba1552ccf554819 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 1 Aug 2023 14:13:42 +0530 Subject: [PATCH] style: sidebar project disclosure list open by default (#1744) --- apps/app/components/project/sidebar-list.tsx | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/apps/app/components/project/sidebar-list.tsx b/apps/app/components/project/sidebar-list.tsx index eab2206b1..5790e7c0b 100644 --- a/apps/app/components/project/sidebar-list.tsx +++ b/apps/app/components/project/sidebar-list.tsx @@ -136,13 +136,7 @@ export const ProjectSidebarList: FC = () => { {(provided) => (
{orderedFavProjects && orderedFavProjects.length > 0 && ( - p.id === projectId) ? true : false - } - > + {({ open }) => ( <> {!sidebarCollapse && ( @@ -197,15 +191,7 @@ export const ProjectSidebarList: FC = () => { {(provided) => (
{orderedJoinedProjects && orderedJoinedProjects.length > 0 && ( - p.id === projectId) - ? true - : false - } - > + {({ open }) => ( <> {!sidebarCollapse && (