Fix hydration error

This commit is contained in:
sirin 2024-08-29 10:39:59 +07:00
parent 882c38dac5
commit 7856120cfc

View File

@ -45,10 +45,7 @@ const ListItem = React.forwardRef<React.ElementRef<"a">, React.ComponentPropsWit
{...props}> {...props}>
<div className="text-sm font-medium leading-none">{title}</div> <div className="text-sm font-medium leading-none">{title}</div>
<hr /> <hr />
<p className="line-clamp-2 text-sm leading-snug text-muted-foreground"> <p className="line-clamp-2 text-sm leading-snug text-muted-foreground">{children}</p>
{/* <Icons.userLogo /> */}
{children}
</p>
</a> </a>
</NavigationMenuLink> </NavigationMenuLink>
</li> </li>
@ -61,7 +58,7 @@ export function UnsignedNav() {
const businessComponents = [ const businessComponents = [
{ {
title: "Businesses", title: "Businesses",
href: "", href: "/landing",
description: "Raise on B2DVentures", description: "Raise on B2DVentures",
}, },
]; ];
@ -69,7 +66,7 @@ export function UnsignedNav() {
const projectComponents = [ const projectComponents = [
{ {
title: "Projects", title: "Projects",
href: "", href: "/landing",
description: "Raise on B2DVentures", description: "Raise on B2DVentures",
}, },
]; ];
@ -77,7 +74,7 @@ export function UnsignedNav() {
const blogComponents = [ const blogComponents = [
{ {
title: "Blogs", title: "Blogs",
href: "", href: "/landing",
description: "Raise on B2DVentures", description: "Raise on B2DVentures",
}, },
]; ];
@ -88,7 +85,7 @@ export function UnsignedNav() {
<div className="flex flex-col"> <div className="flex flex-col">
<Link <Link
className="flex-none text-xl font-semibold dark:text-white focus:outline-none focus:opacity-80" className="flex-none text-xl font-semibold dark:text-white focus:outline-none focus:opacity-80"
href="#" href="/"
aria-label="Brand"> aria-label="Brand">
<span className="inline-flex items-center gap-x-2 text-xl font-semibold dark:text-white"> <span className="inline-flex items-center gap-x-2 text-xl font-semibold dark:text-white">
<Image src="./logo.svg" alt="logo" width={50} height={50} /> <Image src="./logo.svg" alt="logo" width={50} height={50} />
@ -140,9 +137,9 @@ export function UnsignedNav() {
</NavigationMenuItem> </NavigationMenuItem>
<NavigationMenuItem> <NavigationMenuItem>
<Link href="/docs"> <NavigationMenuLink className="text-base font-medium" href="docs">
<NavigationMenuLink className="text-base font-medium">Docs</NavigationMenuLink> Docs
</Link> </NavigationMenuLink>
</NavigationMenuItem> </NavigationMenuItem>
<NavigationMenuItem className="pl-5"> <NavigationMenuItem className="pl-5">