💩 (nav) need fix for full page reload

full page reload when navigate using Link from heroUI
This commit is contained in:
2025-07-13 13:18:30 +07:00
parent 564d230250
commit 9d33464479
2 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,7 @@ const HeroUIWrapper = ({
<main>{children}</main> <main>{children}</main>
</NextThemesProvider> </NextThemesProvider>
) : ( ) : (
<main className="dark text-foreground bg-background"></main> <main className="dark text-foreground bg-background">{children}</main>
)} )}
</HeroUIProvider> </HeroUIProvider>
); );

View File

@ -1,5 +1,6 @@
"use client"; "use client";
import V from "next/link";
import { import {
Button, Button,
Link, Link,
@ -82,6 +83,12 @@ const NavbarUI = () => {
</NavbarItem> </NavbarItem>
); );
})} })}
<NavbarItem>
<V href="/">Home</V>
</NavbarItem>
<NavbarItem>
<V href="/explore">Explore</V>
</NavbarItem>
</NavbarContent> </NavbarContent>
<NavbarContent justify="end"> <NavbarContent justify="end">
<NavbarItem className="hidden lg:flex"> <NavbarItem className="hidden lg:flex">