💩 (nav) need fix for full page reload
full page reload when navigate using Link from heroUI
This commit is contained in:
@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user