bugfix: add condition check undefined value mega menu
This commit is contained in:
parent
0dfa281333
commit
2f9102c4c4
|
|
@ -87,11 +87,11 @@ const MegaMenu = ({
|
||||||
<LocalizedClientLink
|
<LocalizedClientLink
|
||||||
className={clx(
|
className={clx(
|
||||||
"hover:text-ui-fg-base hover:bg-neutral-100 rounded-full px-3 py-2",
|
"hover:text-ui-fg-base hover:bg-neutral-100 rounded-full px-3 py-2",
|
||||||
navLabel.className
|
navLabel?.className
|
||||||
)}
|
)}
|
||||||
href="/store"
|
href="/store"
|
||||||
>
|
>
|
||||||
{navLabel.text} {navLabel.isShowArrow && <ChevronDown />}
|
{navLabel?.text ?? "Product"} {navLabel?.isShowArrow && <ChevronDown />}
|
||||||
</LocalizedClientLink>
|
</LocalizedClientLink>
|
||||||
{isHovered && (
|
{isHovered && (
|
||||||
<div className="absolute top-full left-0 right-0 flex gap-32 py-10 px-20 bg-white border-b border-neutral-200 ">
|
<div className="absolute top-full left-0 right-0 flex gap-32 py-10 px-20 bg-white border-b border-neutral-200 ">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue