You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have a problem with rendering the cta button it works when i add the LOGICAL Not operator { ! } i think this approach isn't very technical can someone help me here is the Navbar.tsx
import { PrismicNextLink } from "@prismicio/next";
import WordMark from "./WordMark";
import Link from "next/link";
import ButtonLink from "@/components/ButtonLink";
type NavBarProps = {
settings: Content.SettingsDocument;
};
export default function NavBar({ settings }: NavBarProps) {
return (
<nav className="px-4 py-4 md:px-6 md:py-6" aria-label="Main">
<div className="mx-auto flex max-w-6xl flex-col justify-between py-2 font-medium text-white md:flex-row md:items-center">
<Link href="/">
<span className="absolute ml-[69px] mt-2 font-bold ">Mugnum</span>
<WordMark />
<span className="sr-only">Mugnum.studio Home page</span>
</Link>
<ul className="flex gap-6 ">
{settings.data.navigation.map((item) => {
if (item.cta_button) {
return (
<li>
<ButtonLink field={item.link}>{item.label}</ButtonLink>
</li>
);
}
return (
<li key={item.label}>
{/*use this "prismicNextLink" for only when retrieving data from prismic*/}
<PrismicNextLink
field={item.link}
className="inline-flex min-h-11 items-center"
>
{item.label}
</PrismicNextLink>
</li>
);
})}
</ul>
</div>
</nav>
);
}
i have a problem with rendering the cta button it works when i add the LOGICAL Not operator { ! } i think this approach isn't very technical can someone help me here is the Navbar.tsx
and here is the buttonlink.tsx
The text was updated successfully, but these errors were encountered: