@ichaingo/header 1.4.16 → 1.4.17

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.
@@ -21,7 +21,7 @@ function M({
21
21
  /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground w-full truncate", children: (l == null ? void 0 : l.email) || (l == null ? void 0 : l.walletAddress) })
22
22
  ] })
23
23
  ] }) }),
24
- o.map((r) => /* @__PURE__ */ e(m, { className: "px-0 py-0 focus-visible:border-none focus-visible:outline-none", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-2 w-full", children: r.name === "logout" ? /* @__PURE__ */ e(g, { className: "flex-1 flex py-3 border-t border-stroke w-full px-2 hover:bg-background" }) : /* @__PURE__ */ e(s, { href: `/${r.href}`, baseUrl: process.env.NEXT_PUBLIC_APP_URL, className: "flex-1 flex py-3 h-full w-full px-2 hover:bg-background rounded-lg ", onClick: n, children: /* @__PURE__ */ e(p, { value: r.name, parentKey: "account" }) }) }) }, r.name))
24
+ o.map((r) => /* @__PURE__ */ e(m, { className: "px-0 py-0 focus-visible:border-none focus-visible:outline-none", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-2 w-full", children: r.name === "logout" ? /* @__PURE__ */ e(g, { className: "flex-1 flex py-3 border-t border-stroke w-full px-2 hover:bg-background" }) : /* @__PURE__ */ e(s, { href: `/${r.href}`, baseUrl: process.env.NEXT_PUBLIC_AUTH_URL, className: "flex-1 flex py-3 h-full w-full px-2 hover:bg-background rounded-lg ", onClick: n, children: /* @__PURE__ */ e(p, { value: r.name, parentKey: "account" }) }) }) }, r.name))
25
25
  ] }) })
26
26
  ] });
27
27
  }
@@ -5,7 +5,7 @@ import c from "@ichaingo/better-link";
5
5
  import p from "@ichaingo/translation";
6
6
  import { twMerge as f } from "tailwind-merge";
7
7
  import { useState as l, useEffect as u } from "react";
8
- function v({ onClick: t = () => {
8
+ function U({ onClick: t = () => {
9
9
  }, className: n }) {
10
10
  const r = m(), { gotoLogin: e } = c(), [i, s] = l("");
11
11
  return u(() => {
@@ -18,7 +18,7 @@ function v({ onClick: t = () => {
18
18
  {
19
19
  href: i,
20
20
  onClick: t,
21
- baseUrl: process.env.NEXT_PUBLIC_APP_URL,
21
+ baseUrl: process.env.NEXT_PUBLIC_AUTH_URL,
22
22
  replace: !0,
23
23
  className: f(
24
24
  "cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
@@ -29,5 +29,5 @@ function v({ onClick: t = () => {
29
29
  );
30
30
  }
31
31
  export {
32
- v as default
32
+ U as default
33
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/header",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -29,18 +29,18 @@
29
29
  "rollup-plugin-preserve-use-client": "^1.0.0",
30
30
  "tailwind-merge": "^2.5.5",
31
31
  "next": "15.1.6",
32
- "@ichaingo/image": "1.4.16",
33
- "@ichaingo/link": "1.4.16",
34
- "@ichaingo/translation": "1.4.16",
35
- "@ichaingo/ui": "1.4.16",
36
- "@ichaingo/auth": "1.4.16",
37
- "@ichaingo/avatar": "1.4.16",
38
- "@ichaingo/i18n": "1.4.16",
39
- "@ichaingo/iconfont": "1.4.16",
40
- "@ichaingo/request": "1.4.16",
41
- "@ichaingo/theme-toggle": "1.4.16",
42
- "@ichaingo/better-link": "1.4.16",
43
- "@ichaingo/providers": "1.4.16"
32
+ "@ichaingo/auth": "1.4.17",
33
+ "@ichaingo/avatar": "1.4.17",
34
+ "@ichaingo/image": "1.4.17",
35
+ "@ichaingo/better-link": "1.4.17",
36
+ "@ichaingo/link": "1.4.17",
37
+ "@ichaingo/translation": "1.4.17",
38
+ "@ichaingo/ui": "1.4.17",
39
+ "@ichaingo/i18n": "1.4.17",
40
+ "@ichaingo/request": "1.4.17",
41
+ "@ichaingo/iconfont": "1.4.17",
42
+ "@ichaingo/providers": "1.4.17",
43
+ "@ichaingo/theme-toggle": "1.4.17"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/js-cookie": "^3.0.6"