Skip to content

Commit

Permalink
Merge pull request #8 from DipakKhade/main
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeWilfried authored Feb 20, 2024
2 parents b3c40f8 + 34fe1ed commit 5353538
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/(marketing)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default async function MarketingLayout({
<header className="container z-40 bg-background">
<div className="flex h-20 items-center justify-between py-6">
<MainNav items={marketingConfig.mainNav} />

<nav>
{
user
Expand Down
3 changes: 2 additions & 1 deletion components/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as React from "react"
import Link from "next/link"
import { useSelectedLayoutSegment } from "next/navigation"

import { ModeToggle } from "@/components/mode-toggle"
import { MainNavItem } from "types"
import { siteConfig } from "@/config/site"
import { cn } from "@/lib/utils"
Expand Down Expand Up @@ -44,6 +44,7 @@ export function MainNav({ items, children }: MainNavProps) {
{item.title}
</Link>
))}
<ModeToggle />
</nav>
) : null}
<button
Expand Down
4 changes: 3 additions & 1 deletion components/site-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export function SiteFooter({ className }: React.HTMLAttributes<HTMLElement>) {
.
</p>
</div>
<ModeToggle />
<span className="block sm:hidden">
<ModeToggle />
</span>
</div>
</footer>
)
Expand Down

0 comments on commit 5353538

Please sign in to comment.