From 1c22c18de52aee01a911297ac1cf1e98e39f780d Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 14 May 2025 13:31:07 -0700 Subject: [PATCH] New menu layout. --- src/app/(main)/App.tsx | 4 +- src/app/(main)/Nav.tsx | 2 +- .../[websiteId]/WebsiteDetailsPage.tsx | 4 +- .../websites/[websiteId]/WebsiteLayout.tsx | 13 +++ .../websites/[websiteId]/WebsiteTabs.tsx | 86 +++++++++++++++---- .../[websiteId]/events/EventsPage.tsx | 2 - .../(main)/websites/[websiteId]/layout.tsx | 4 +- .../realtime/WebsiteRealtimePage.tsx | 2 - .../reports/WebsiteReportsPage.tsx | 2 - .../[websiteId]/sessions/SessionsPage.tsx | 2 - .../[sessionId]/SessionDetailsPage.tsx | 2 - src/components/common/DateDisplay.tsx | 4 +- src/components/input/DateFilter.tsx | 1 + src/components/input/WebsiteDateFilter.tsx | 4 +- src/components/metrics/FilterBar.tsx | 16 ++-- src/declaration.d.ts | 1 + src/styles/global.css | 1 - 17 files changed, 103 insertions(+), 47 deletions(-) create mode 100644 src/app/(main)/websites/[websiteId]/WebsiteLayout.tsx diff --git a/src/app/(main)/App.tsx b/src/app/(main)/App.tsx index 2fe47d57..e003b213 100644 --- a/src/app/(main)/App.tsx +++ b/src/app/(main)/App.tsx @@ -19,6 +19,7 @@ export function App({ children }) { if (error) { window.location.href = `${process.env.basePath || ''}/login`; + return null; } if (!user || !config) { @@ -30,7 +31,7 @@ export function App({ children }) { } return ( - +