From 1deada190a9abd90017667bb96bd8a893ad35df6 Mon Sep 17 00:00:00 2001 From: Dan Lebo Date: Sun, 5 Feb 2023 13:08:29 -0800 Subject: [PATCH] introduce navitem component --- beta/src/components/Layout/TopNav/TopNav.tsx | 68 +++++++------------- 1 file changed, 24 insertions(+), 44 deletions(-) diff --git a/beta/src/components/Layout/TopNav/TopNav.tsx b/beta/src/components/Layout/TopNav/TopNav.tsx index 959d9829b..1064796fb 100644 --- a/beta/src/components/Layout/TopNav/TopNav.tsx +++ b/beta/src/components/Layout/TopNav/TopNav.tsx @@ -125,6 +125,22 @@ function Link({href, children, ...props}: JSX.IntrinsicElements['a']) { ); } +function NavItem({url, section, title}: any) { + return ( +
+ + {title} + +
+ ); +} + export default function TopNav({ routeTree, breadcrumbs, @@ -260,50 +276,14 @@ export default function TopNav({
-
- - Learn - -
-
- - Reference - -
-
- - Community - -
-
- - Blog - -
+ + + +