@0xchain/header 1.1.0-beta.55 → 1.1.0-beta.57

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.
package/dist/lib/Nav.js CHANGED
@@ -54,37 +54,37 @@ function Nav({ onClick = () => void 0, hideNews = false, hideLogin = false, user
54
54
  },
55
55
  {
56
56
  baseUrl: process.env.NEXT_PUBLIC_APP_URL,
57
- key: "/products",
58
- label: /* @__PURE__ */ jsx(Products, { onClick }),
57
+ href: `/news`,
58
+ key: "/news",
59
+ label: /* @__PURE__ */ jsx(Translation, { value: "news", parentKey: "menu" }),
59
60
  show: (pathname2) => {
60
- return pathname2.includes("/widget");
61
+ return pathname2.includes(`/news`);
61
62
  }
62
63
  },
63
64
  {
64
65
  baseUrl: process.env.NEXT_PUBLIC_APP_URL,
65
- href: `/learn`,
66
- key: "/learn",
67
- label: /* @__PURE__ */ jsx(Translation, { value: "learn", parentKey: "menu" }),
66
+ href: `/ranking`,
67
+ key: "/ranking",
68
+ label: /* @__PURE__ */ jsx(Translation, { value: "ranking", parentKey: "menu" }),
68
69
  show: (pathname2) => {
69
- return pathname2.includes(`/learn`);
70
+ return pathname2.includes(`/ranking`);
70
71
  }
71
72
  },
72
73
  {
73
74
  baseUrl: process.env.NEXT_PUBLIC_APP_URL,
74
- href: `/news`,
75
- key: "/news",
76
- label: /* @__PURE__ */ jsx(Translation, { value: "news", parentKey: "menu" }),
75
+ href: `/learn`,
76
+ key: "/learn",
77
+ label: /* @__PURE__ */ jsx(Translation, { value: "learn", parentKey: "menu" }),
77
78
  show: (pathname2) => {
78
- return pathname2.includes(`/news`);
79
+ return pathname2.includes(`/learn`);
79
80
  }
80
81
  },
81
82
  {
82
83
  baseUrl: process.env.NEXT_PUBLIC_APP_URL,
83
- href: `/ranking`,
84
- key: "/ranking",
85
- label: /* @__PURE__ */ jsx(Translation, { value: "ranking", parentKey: "menu" }),
84
+ key: "/products",
85
+ label: /* @__PURE__ */ jsx(Products, { onClick }),
86
86
  show: (pathname2) => {
87
- return pathname2.includes(`/ranking`);
87
+ return pathname2.includes("/widget");
88
88
  }
89
89
  }
90
90
  ]?.filter((item) => {
@@ -44,7 +44,7 @@ function Products({
44
44
  onClick: (info) => handleClick(info.domEvent, item.href)
45
45
  }))
46
46
  },
47
- children: /* @__PURE__ */ jsx("div", { className: "whitespace-nowrap flex items-center gap-1 rounded-lg", children: /* @__PURE__ */ jsx(Translation, { value: "products.product", parentKey: "menu" }) })
47
+ children: /* @__PURE__ */ jsx("div", { className: "whitespace-nowrap flex items-center gap-1 rounded-lg md:px-4 md:py-1 ", children: /* @__PURE__ */ jsx(Translation, { value: "products.product", parentKey: "menu" }) })
48
48
  }
49
49
  ) }),
50
50
  /* @__PURE__ */ jsx("div", { className: "md:hidden w-full", children: /* @__PURE__ */ jsxs("div", { onClick: (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xchain/header",
3
- "version": "1.1.0-beta.55",
3
+ "version": "1.1.0-beta.57",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -45,16 +45,16 @@
45
45
  "@0xchain/auth": "1.1.0-beta.53",
46
46
  "@0xchain/better-link": "1.1.0-beta.53",
47
47
  "@0xchain/with-login": "1.1.0-beta.53",
48
- "@0xchain/i18n": "1.1.0-beta.55",
49
- "@0xchain/image": "1.1.0-beta.55",
50
- "@0xchain/link": "1.1.0-beta.55",
51
- "@0xchain/request": "1.1.0-beta.55",
52
- "@0xchain/translation": "1.1.0-beta.55",
53
- "@0xchain/avatar": "1.1.0-beta.55",
54
- "@0xchain/tooltip": "1.1.0-beta.55",
55
- "@0xchain/iconfont": "1.1.0-beta.55",
56
- "@0xchain/ui": "1.1.0-beta.55",
57
- "@0xchain/theme-toggle": "1.1.0-beta.55"
48
+ "@0xchain/i18n": "1.1.0-beta.57",
49
+ "@0xchain/link": "1.1.0-beta.57",
50
+ "@0xchain/avatar": "1.1.0-beta.57",
51
+ "@0xchain/theme-toggle": "1.1.0-beta.57",
52
+ "@0xchain/iconfont": "1.1.0-beta.57",
53
+ "@0xchain/tooltip": "1.1.0-beta.57",
54
+ "@0xchain/request": "1.1.0-beta.57",
55
+ "@0xchain/translation": "1.1.0-beta.57",
56
+ "@0xchain/ui": "1.1.0-beta.57",
57
+ "@0xchain/image": "1.1.0-beta.57"
58
58
  },
59
59
  "nx": {
60
60
  "tags": [