@0xchain/header 1.1.0-beta.67 → 1.1.0-beta.69
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 +3 -2
- package/package.json +15 -15
package/dist/lib/Nav.js
CHANGED
|
@@ -10,7 +10,7 @@ import { useLocale } from "@0xchain/i18n/react";
|
|
|
10
10
|
import Logout from "./User/Logout.js";
|
|
11
11
|
import { useState, useCallback, useEffect } from "react";
|
|
12
12
|
import SignIn from "./User/SignIn.js";
|
|
13
|
-
import { getRuntimeLoginState } from "@0xchain/auth";
|
|
13
|
+
import { getClientSession, getRuntimeLoginState } from "@0xchain/auth";
|
|
14
14
|
import { onUserEvent, USER_EVENTS } from "./events.js";
|
|
15
15
|
import { usePathname } from "next/navigation";
|
|
16
16
|
import Explorer from "./Explorer.js";
|
|
@@ -121,7 +121,8 @@ function Nav({ onClick = () => void 0, hideNews = false, hideLogin = false, user
|
|
|
121
121
|
if (isChaindigg) return;
|
|
122
122
|
const cleanProfileUpdated = onUserEvent(USER_EVENTS.PROFILE_UPDATED, updateUserInfo);
|
|
123
123
|
const cleanLoggedIn = onUserEvent(USER_EVENTS.LOGGED_IN, updateUserInfo);
|
|
124
|
-
|
|
124
|
+
const cookieLoggedIn = getClientSession().isLoggedIn;
|
|
125
|
+
if (!hasUserProfile && (cookieLoggedIn || getRuntimeLoginState() === true)) {
|
|
125
126
|
updateUserInfo();
|
|
126
127
|
}
|
|
127
128
|
return () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xchain/header",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.69",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react": "19.1.1",
|
|
27
27
|
"react-dom": "19.1.1",
|
|
28
28
|
"tailwind-merge": "3.3.1",
|
|
29
|
-
"@0xchain/with-login": "1.1.0-beta.
|
|
29
|
+
"@0xchain/with-login": "1.1.0-beta.69"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@0xchain/next-themes": "1.0.0",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"react-dom": "19.1.1",
|
|
42
42
|
"rollup-plugin-preserve-use-client": "3.0.1",
|
|
43
43
|
"tailwind-merge": "3.3.1",
|
|
44
|
-
"@0xchain/with-login": "1.1.0-beta.
|
|
44
|
+
"@0xchain/with-login": "1.1.0-beta.69"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@0xchain/auth": "1.1.0-beta.
|
|
48
|
-
"@0xchain/
|
|
49
|
-
"@0xchain/
|
|
50
|
-
"@0xchain/
|
|
51
|
-
"@0xchain/
|
|
52
|
-
"@0xchain/
|
|
53
|
-
"@0xchain/
|
|
54
|
-
"@0xchain/translation": "1.1.0-beta.
|
|
55
|
-
"@0xchain/
|
|
56
|
-
"@0xchain/tooltip": "1.1.0-beta.
|
|
57
|
-
"@0xchain/
|
|
58
|
-
"@0xchain/ui": "1.1.0-beta.
|
|
47
|
+
"@0xchain/auth": "1.1.0-beta.69",
|
|
48
|
+
"@0xchain/avatar": "1.1.0-beta.69",
|
|
49
|
+
"@0xchain/i18n": "1.1.0-beta.69",
|
|
50
|
+
"@0xchain/link": "1.1.0-beta.69",
|
|
51
|
+
"@0xchain/image": "1.1.0-beta.69",
|
|
52
|
+
"@0xchain/better-link": "1.1.0-beta.69",
|
|
53
|
+
"@0xchain/iconfont": "1.1.0-beta.69",
|
|
54
|
+
"@0xchain/translation": "1.1.0-beta.69",
|
|
55
|
+
"@0xchain/request": "1.1.0-beta.69",
|
|
56
|
+
"@0xchain/tooltip": "1.1.0-beta.69",
|
|
57
|
+
"@0xchain/theme-toggle": "1.1.0-beta.69",
|
|
58
|
+
"@0xchain/ui": "1.1.0-beta.69"
|
|
59
59
|
},
|
|
60
60
|
"nx": {
|
|
61
61
|
"tags": [
|