From 5efc6993cd8f4aab7211bde2440de3ba8aada3fa Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Fri, 3 Nov 2023 00:09:13 +0530 Subject: [PATCH] fix: Update analytics page layout fixes (#2623) --- web/pages/[workspaceSlug]/analytics.tsx | 100 ++++++++++++------------ 1 file changed, 49 insertions(+), 51 deletions(-) diff --git a/web/pages/[workspaceSlug]/analytics.tsx b/web/pages/[workspaceSlug]/analytics.tsx index da65e1291..0faa835ad 100644 --- a/web/pages/[workspaceSlug]/analytics.tsx +++ b/web/pages/[workspaceSlug]/analytics.tsx @@ -58,57 +58,55 @@ const AnalyticsPage: NextPageWithLayout = observer(() => { }, [user, workspaceSlug]); return ( - }> - <> - {projects && projects.length > 0 ? ( -
- - - {ANALYTICS_TABS.map((tab) => ( - - `rounded-3xl border border-custom-border-200 px-4 py-2 text-xs hover:bg-custom-background-80 ${ - selected ? "bg-custom-background-80" : "" - }` - } - onClick={() => trackAnalyticsEvent(tab.key)} - > - {tab.title} - - ))} - - - - - - - - - - -
- ) : ( - <> - , - text: "New Project", - onClick: () => { - const e = new KeyboardEvent("keydown", { - key: "p", - }); - document.dispatchEvent(e); - }, - }} - /> - - )} - -
+ <> + {projects && projects.length > 0 ? ( +
+ + + {ANALYTICS_TABS.map((tab) => ( + + `rounded-3xl border border-custom-border-200 px-4 py-2 text-xs hover:bg-custom-background-80 ${ + selected ? "bg-custom-background-80" : "" + }` + } + onClick={() => trackAnalyticsEvent(tab.key)} + > + {tab.title} + + ))} + + + + + + + + + + +
+ ) : ( + <> + , + text: "New Project", + onClick: () => { + const e = new KeyboardEvent("keydown", { + key: "p", + }); + document.dispatchEvent(e); + }, + }} + /> + + )} + ); });