Skip to content

Commit

Permalink
Merge pull request #125 from Huzaifa785/docs-nav-option-bug
Browse files Browse the repository at this point in the history
Docs nav option seen on all pages now
  • Loading branch information
Vishal-raj-1 authored Oct 4, 2023
2 parents 3305b8b + c9985fd commit 2461f71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/(batches)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const CourseRootLayout = ({ children }: BatchRootLayoutProps) => {
<div className="flex min-h-screen flex-col">
<header className="sticky top-0 z-40 w-full border-b bg-background">
<div className="container flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
<MainNav items={docsConfig.mainNav}>
<MainNav items={navConfig}>
<DocsSidebarNav items={docsConfig.sidebarNav} />
</MainNav>

Expand Down
2 changes: 1 addition & 1 deletion components/layout/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function MainNav({ items, children }: MainNavProps) {
<div className="flex gap-6 md:gap-10 w-full">
<Link href="/" className="hidden items-center space-x-2 md:flex">
<span className="hidden text-lg font-bold sm:inline-block">
Frontend Freaks
Frontend Freaks
</span>
</Link>

Expand Down
4 changes: 2 additions & 2 deletions config/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const navConfig: NavItem[] = [
},
{
title: "Docs",
href: "https://frontendfreaks.vercel.app/docs",
},
href: "/docs",
}
];

0 comments on commit 2461f71

Please sign in to comment.