Bob AI: Add a navigation link to the products page in the navbar men
This commit is contained in:
@@ -13,7 +13,7 @@ import type { ButtonConfig } from "@/types/button";
|
||||
import "./NavbarStyleFullscreen.css";
|
||||
|
||||
interface NavLinkProps {
|
||||
item: NavItem;
|
||||
item: NavItem & { href?: string };
|
||||
onClose: () => void;
|
||||
}
|
||||
|
||||
@@ -21,13 +21,13 @@ const NavLink = ({ item, onClose }: NavLinkProps) => {
|
||||
const handleClick = useButtonClick(item.id, onClose);
|
||||
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
className="navbar-fullscreen__link text-background font-normal leading-[1.15] no-underline text-9xl bg-transparent border-none cursor-pointer"
|
||||
<a
|
||||
href={item.href || "#"}
|
||||
className="navbar-fullscreen__link text-background font-normal leading-[1.15] no-underline text-9xl bg-transparent border-none cursor-pointer block"
|
||||
onClick={handleClick}
|
||||
>
|
||||
<span className="navbar-fullscreen__link-text block relative">{item.name}</span>
|
||||
</button>
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user