@ichaingo/header 1.5.15 → 1.5.16

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.
Files changed (2) hide show
  1. package/dist/lib/Explorer.js +13 -13
  2. package/package.json +14 -14
@@ -1,28 +1,28 @@
1
1
  'use client';
2
- import { jsx as o, jsxs as i } from "react/jsx-runtime";
3
- import p from "@ichaingo/translation";
2
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
3
+ import i from "@ichaingo/translation";
4
4
  import { Dropdown as h } from "antd";
5
5
  import { useState as u, useEffect as d } from "react";
6
6
  import f from "@ichaingo/request";
7
7
  import m from "@ichaingo/link";
8
8
  import g from "@ichaingo/better-link";
9
- function N() {
10
- const { gotoExplorer: n } = g(), [c, t] = u([]), l = async () => {
9
+ function k() {
10
+ const { gotoExplorer: n } = g(), [c, s] = u([]), t = async () => {
11
11
  const r = await f.get("/api/v2/chains/all-chain-list/basic");
12
- t(r.data);
12
+ s(r.data);
13
13
  };
14
14
  d(() => {
15
- l();
15
+ t();
16
16
  }, []);
17
- const s = (r) => {
18
- var a, e;
19
- return /* @__PURE__ */ i(m, { href: n({ chain: r.chainSymbol }), className: "w-full h-full flex items-center gap-2 py-2 cursor-pointer font-medium", children: [
17
+ const l = (r) => {
18
+ var e, a;
19
+ return /* @__PURE__ */ p(m, { href: n({ chain: r.chainSymbol }), className: "w-full h-full flex items-center gap-2 py-2 cursor-pointer font-medium", baseUrl: process.env.NEXT_PUBLIC_BASE_URL, children: [
20
20
  /* @__PURE__ */ o(
21
21
  "i",
22
22
  {
23
23
  className: "block w-5 h-5 bg-cover bg-center",
24
24
  style: {
25
- backgroundImage: r != null && r.chainIconUrl ? `url(${r == null ? void 0 : r.chainIconUrl})` : `url('//cdn.ichaingo.com/module/cryptos/${(e = (a = r == null ? void 0 : r.chain) == null ? void 0 : a.toLowerCase()) == null ? void 0 : e.replace(" ", "-")}.png?format=auto&width=20&height=20')`
25
+ backgroundImage: r != null && r.chainIconUrl ? `url(${r == null ? void 0 : r.chainIconUrl})` : `url('//cdn.ichaingo.com/module/cryptos/${(a = (e = r == null ? void 0 : r.chain) == null ? void 0 : e.toLowerCase()) == null ? void 0 : a.replace(" ", "-")}.png?format=auto&width=20&height=20')`
26
26
  }
27
27
  }
28
28
  ),
@@ -40,14 +40,14 @@ function N() {
40
40
  placement: "bottom",
41
41
  menu: {
42
42
  items: c.map((r) => ({
43
- label: s(r),
43
+ label: l(r),
44
44
  key: r.chainSymbol
45
45
  }))
46
46
  },
47
- children: /* @__PURE__ */ o("div", { className: "whitespace-nowrap leading-11 md:leading-[34px] flex items-center gap-1", children: /* @__PURE__ */ o(p, { value: "title", parentKey: "browser" }) })
47
+ children: /* @__PURE__ */ o("div", { className: "whitespace-nowrap leading-11 md:leading-[34px] flex items-center gap-1", children: /* @__PURE__ */ o(i, { value: "title", parentKey: "browser" }) })
48
48
  }
49
49
  );
50
50
  }
51
51
  export {
52
- N as default
52
+ k as default
53
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/header",
3
- "version": "1.5.15",
3
+ "version": "1.5.16",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -32,18 +32,18 @@
32
32
  "tailwind-merge": "3.3.1",
33
33
  "next": "15.5.6",
34
34
  "antd": "6.1.1",
35
- "@ichaingo/auth": "1.5.15",
36
- "@ichaingo/better-link": "1.5.15",
37
- "@ichaingo/image": "1.5.15",
38
- "@ichaingo/translation": "1.5.15",
39
- "@ichaingo/ui": "1.5.15",
40
- "@ichaingo/theme-toggle": "1.5.15",
41
- "@ichaingo/request": "1.5.15",
42
- "@ichaingo/tooltip": "1.5.15",
43
- "@ichaingo/iconfont": "1.5.15",
44
- "@ichaingo/link": "1.5.15",
45
- "@ichaingo/avatar": "1.5.15",
46
- "@ichaingo/with-login": "1.5.15",
47
- "@ichaingo/token": "1.5.15"
35
+ "@ichaingo/better-link": "1.5.16",
36
+ "@ichaingo/image": "1.5.16",
37
+ "@ichaingo/auth": "1.5.16",
38
+ "@ichaingo/translation": "1.5.16",
39
+ "@ichaingo/ui": "1.5.16",
40
+ "@ichaingo/with-login": "1.5.16",
41
+ "@ichaingo/theme-toggle": "1.5.16",
42
+ "@ichaingo/tooltip": "1.5.16",
43
+ "@ichaingo/token": "1.5.16",
44
+ "@ichaingo/iconfont": "1.5.16",
45
+ "@ichaingo/request": "1.5.16",
46
+ "@ichaingo/avatar": "1.5.16",
47
+ "@ichaingo/link": "1.5.16"
48
48
  }
49
49
  }