[portal][nav] hide global nav for resumes

pull/336/head
Yangshun Tay 3 years ago
parent dd08da88a0
commit b1d7a4e4e6

@ -107,6 +107,7 @@ export default function AppShell({ children }: Props) {
const currentProductNavigation: Readonly<{ const currentProductNavigation: Readonly<{
navigation: ProductNavigationItems; navigation: ProductNavigationItems;
showGlobalNav: boolean;
title: string; title: string;
}> = (() => { }> = (() => {
const path = router.pathname; const path = router.pathname;
@ -128,6 +129,7 @@ export default function AppShell({ children }: Props) {
return ( return (
<div className="flex h-full min-h-screen"> <div className="flex h-full min-h-screen">
{/* Narrow sidebar */} {/* Narrow sidebar */}
{currentProductNavigation.showGlobalNav && (
<div className="hidden w-28 overflow-y-auto border-r border-slate-200 bg-white md:block"> <div className="hidden w-28 overflow-y-auto border-r border-slate-200 bg-white md:block">
<div className="flex w-full flex-col items-center py-6"> <div className="flex w-full flex-col items-center py-6">
<div className="flex flex-shrink-0 items-center"> <div className="flex flex-shrink-0 items-center">
@ -161,6 +163,7 @@ export default function AppShell({ children }: Props) {
</div> </div>
</div> </div>
</div> </div>
)}
{/* Mobile menu */} {/* Mobile menu */}
<MobileNavigation <MobileNavigation

@ -15,6 +15,7 @@ const navigation: ProductNavigationItems = [
const config = { const config = {
navigation, navigation,
showGlobalNav: true,
title: 'Tech Interview Handbook', title: 'Tech Interview Handbook',
}; };

@ -16,6 +16,7 @@ const navigation: ProductNavigationItems = [
const config = { const config = {
navigation, navigation,
showGlobalNav: true,
title: 'Offers', title: 'Offers',
}; };

@ -9,6 +9,7 @@ const navigation: ProductNavigationItems = [
const config = { const config = {
navigation, navigation,
showGlobalNav: true,
title: 'Questions Bank', title: 'Questions Bank',
}; };

@ -16,6 +16,7 @@ const navigation: ProductNavigationItems = [
const config = { const config = {
navigation, navigation,
showGlobalNav: false,
title: 'Resumes', title: 'Resumes',
}; };

Loading…
Cancel
Save