From 0954db0fcbb1abf1bc0db1864dfac14d29ea1277 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Thu, 25 Jan 2024 14:14:43 +0530 Subject: [PATCH] chore: dashboard empty state improvement --- .../page-views/workspace-dashboard.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/web/components/page-views/workspace-dashboard.tsx b/web/components/page-views/workspace-dashboard.tsx index 6e185e2d0..fa5f7c2c1 100644 --- a/web/components/page-views/workspace-dashboard.tsx +++ b/web/components/page-views/workspace-dashboard.tsx @@ -55,17 +55,19 @@ export const WorkspaceDashboardView = observer(() => { return ( <> - - {currentUser && !currentUser.is_tour_completed && ( -
- -
- )} {homeDashboardId && joinedProjectIds ? ( -
- {currentUser && } + <> {joinedProjectIds.length > 0 ? ( - +
+ + {currentUser && } + {currentUser && !currentUser.is_tour_completed && ( +
+ +
+ )} + +
) : ( { disabled={!isEditingAllowed} /> )} -
+ ) : (