@axos-web-dev/shared-components 2.0.0-dev.17-nav-2 → 2.0.0-dev.17-nav-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ import "clsx";
16
16
  import "../../Chevron/Chevron.css.js";
17
17
  import "../../Interstitial/Interstitial-variants.css.js";
18
18
  import "../../Button/Button.css.js";
19
- import { useLocation, useMount, useClickAway } from "react-use";
19
+ import { useLocation, useClickAway } from "react-use";
20
20
  /* empty css */
21
21
  import { useGlobalContext } from "../../Modal/contextApi/store.js";
22
22
  import { NavItem } from "../NavItem/index.js";
@@ -37,10 +37,6 @@ function NavBar({
37
37
  const toggle = () => setisOpenSignIn(!isOpenSignIn);
38
38
  const handleClick = (index) => setActiveIndex(index);
39
39
  const [isClient, setIsClient] = useState(false);
40
- const [isMounted, setIsMounted] = useState(false);
41
- useMount(() => {
42
- setIsMounted(true);
43
- });
44
40
  useEffect(() => {
45
41
  const getActiveIndex = () => {
46
42
  const index = items?.subNavBar?.findIndex((path) => {
@@ -115,7 +111,7 @@ function NavBar({
115
111
  if (pathname == "/") return item.url === "/personal";
116
112
  return item.url === pathname;
117
113
  });
118
- return /* @__PURE__ */ jsx("header", { id: "header", children: isMounted && /* @__PURE__ */ jsxs(Fragment, { children: [
114
+ return /* @__PURE__ */ jsx("header", { id: "header", children: /* @__PURE__ */ jsxs(Fragment, { children: [
119
115
  /* @__PURE__ */ jsx("div", { className: `${styles.header} bg_white`, children: /* @__PURE__ */ jsxs("div", { className: styles.wrapper, children: [
120
116
  /* @__PURE__ */ jsx(
121
117
  "a",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "2.0.0-dev.17-nav-2",
4
+ "version": "2.0.0-dev.17-nav-3",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "module": "dist/main.js",