Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs nav option seen on all pages now #125

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
}
];
Loading