From 8e08ff86f4f9a67cd9b46238992c29b42dcea85c Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Wed, 2 Nov 2022 17:33:28 +0800 Subject: [PATCH] [portal][ui] change app shell nav structure --- apps/portal/src/components/global/AppShell.tsx | 16 +++++++--------- apps/portal/src/pages/_document.tsx | 4 ++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/apps/portal/src/components/global/AppShell.tsx b/apps/portal/src/components/global/AppShell.tsx index a0a44b84..b1191d45 100644 --- a/apps/portal/src/components/global/AppShell.tsx +++ b/apps/portal/src/components/global/AppShell.tsx @@ -136,7 +136,7 @@ export default function AppShell({ children }: Props) { return ( -
+
{/* Narrow sidebar */} {currentProductNavigation.showGlobalNav && (
@@ -183,9 +183,10 @@ export default function AppShell({ children }: Props) { setIsShown={setMobileMenuOpen} /> {/* Content area */} -
-
-
+
+ {/* Navigation Bar */} +
+
- - {/* Main content */} -
- {children} -
+ {/* Main Content */} +
{children}
diff --git a/apps/portal/src/pages/_document.tsx b/apps/portal/src/pages/_document.tsx index 69112ab2..016ecd1a 100644 --- a/apps/portal/src/pages/_document.tsx +++ b/apps/portal/src/pages/_document.tsx @@ -2,9 +2,9 @@ import { Head, Html, Main, NextScript } from 'next/document'; export default function Document() { return ( - + - +