Skip to content

Commit

Permalink
Merge pull request #87 from sarveshpyadav/fix/nav-bar
Browse files Browse the repository at this point in the history
Fix 'MainNav' and 'MobileNav' for consistent navigation
  • Loading branch information
Vishal-raj-1 authored Oct 2, 2023
2 parents 43c9312 + a5f0123 commit d1578b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/layout/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export default function MainNav({ items, children }: MainNavProps) {
className="flex items-center space-x-2 md:hidden"
onClick={() => setShowMobileMenu(!showMobileMenu)}
>
{showMobileMenu ? <Icons.close /> : <Icons.logo />}
<span className="font-bold">Menu</span>
{/* {showMobileMenu ? <Icons.close /> : <Icons.logo />} */}
<span className="font-bold">Frontend Freaks</span>
</button>
{showMobileMenu && items && (
<MobileNav items={items}>{children}</MobileNav>
Expand Down
2 changes: 1 addition & 1 deletion components/layout/mobile-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function MobileNav({ items, children }: MobileNavProps) {
<div className="relative z-20 grid gap-6 rounded-md bg-popover p-4 text-popover-foreground shadow-md">
<Link href="/" className="flex items-center space-x-2">
<Icons.logo />
<span className="font-bold">Frontend</span>
<span className="font-bold">Menu</span>
</Link>
<nav className="grid grid-flow-row auto-rows-max text-sm">
{items.map((item, index) => (
Expand Down

0 comments on commit d1578b6

Please sign in to comment.