+
+
-
- {label}
-
+ {label}
{arrowIcon && (
-
-
+
+
)}
-
+
{children}
diff --git a/src/lib/components/organisms/Navbar/NavbarLink.tsx b/src/lib/components/organisms/Navbar/NavbarLink.tsx
index 70b9aad..8dc2ddf 100644
--- a/src/lib/components/organisms/Navbar/NavbarLink.tsx
+++ b/src/lib/components/organisms/Navbar/NavbarLink.tsx
@@ -1,5 +1,5 @@
-import classNames from 'classnames';
import type { FC } from 'react';
+import { twJoin, twMerge } from 'tailwind-merge';
import { useTheme } from '../../bosons/HelloInternet/ThemeContext';
import { useNavbarContext } from './NavbarContext';
@@ -36,7 +36,9 @@ export const NavbarLink: FC = ({
if (onClick) {
onClick(e);
}
- setIsOpen(false);
+ if (href) {
+ setIsOpen(false);
+ }
};
const LinkOrDivComponent = href ? as ?? 'a' : 'div';
@@ -45,14 +47,25 @@ export const NavbarLink: FC = ({
{children}
{withUnderlineEffect && (
-
+
)}
diff --git a/src/lib/components/organisms/Navbar/NavbarToggle.tsx b/src/lib/components/organisms/Navbar/NavbarToggle.tsx
index abdf956..63bb880 100644
--- a/src/lib/components/organisms/Navbar/NavbarToggle.tsx
+++ b/src/lib/components/organisms/Navbar/NavbarToggle.tsx
@@ -1,5 +1,6 @@
import type { ComponentProps, FC } from 'react';
import { GoThreeBars } from 'react-icons/go';
+import { twMerge } from 'tailwind-merge';
import { excludeClassName } from '../../../helpers/exclude';
import { useTheme } from '../../bosons/HelloInternet/ThemeContext';
import { useNavbarContext } from './NavbarContext';
@@ -19,9 +20,17 @@ export const NavbarToggle: FC = ({ barIcon: BarIcon = GoThree
const theirProps = excludeClassName(props);
return (
-