mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 09:48:32 +00:00
fix:#274
This commit is contained in:
parent
651f984e52
commit
34fe1eddb2
3 changed files with 6 additions and 2 deletions
|
|
@ -18,6 +18,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>
|
||||
<Link
|
||||
href="/login"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
@ -44,6 +44,7 @@ export function MainNav({ items, children }: MainNavProps) {
|
|||
{item.title}
|
||||
</Link>
|
||||
))}
|
||||
<ModeToggle />
|
||||
</nav>
|
||||
) : null}
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -51,7 +51,9 @@ export function SiteFooter({ className }: React.HTMLAttributes<HTMLElement>) {
|
|||
.
|
||||
</p>
|
||||
</div>
|
||||
<ModeToggle />
|
||||
<span className="block sm:hidden">
|
||||
<ModeToggle />
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue