@arcblock/ux 2.6.6 → 2.6.7
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.
@@ -25,6 +25,7 @@ var _Disconnect = _interopRequireDefault(require("@arcblock/icons/lib/Disconnect
|
|
25
25
|
var _Switch = _interopRequireDefault(require("@arcblock/icons/lib/Switch"));
|
26
26
|
var _useBrowser = _interopRequireDefault(require("@arcblock/react-hooks/lib/useBrowser"));
|
27
27
|
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
28
|
+
var _noop = _interopRequireDefault(require("lodash/noop"));
|
28
29
|
var _Avatar = _interopRequireDefault(require("../Avatar"));
|
29
30
|
var _Address = _interopRequireDefault(require("../Address"));
|
30
31
|
var _Util = require("../Util");
|
@@ -474,7 +475,6 @@ SessionManager.propTypes = {
|
|
474
475
|
dark: _propTypes.default.bool,
|
475
476
|
size: _propTypes.default.number
|
476
477
|
};
|
477
|
-
const noop = () => {};
|
478
478
|
SessionManager.defaultProps = {
|
479
479
|
locale: 'en',
|
480
480
|
showText: false,
|
@@ -484,13 +484,13 @@ SessionManager.defaultProps = {
|
|
484
484
|
switchPassport: true,
|
485
485
|
disableLogout: false,
|
486
486
|
menu: [],
|
487
|
-
menuRender:
|
488
|
-
onLogin:
|
489
|
-
onLogout:
|
490
|
-
onSwitchDid:
|
491
|
-
onSwitchProfile:
|
492
|
-
onSwitchPassport:
|
493
|
-
onBindWallet:
|
487
|
+
menuRender: _noop.default,
|
488
|
+
onLogin: _noop.default,
|
489
|
+
onLogout: _noop.default,
|
490
|
+
onSwitchDid: _noop.default,
|
491
|
+
onSwitchProfile: _noop.default,
|
492
|
+
onSwitchPassport: _noop.default,
|
493
|
+
onBindWallet: _noop.default,
|
494
494
|
dark: false,
|
495
495
|
size: 24
|
496
496
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.6.
|
3
|
+
"version": "2.6.7",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -47,11 +47,11 @@
|
|
47
47
|
"peerDependencies": {
|
48
48
|
"react": ">=18.1.0"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "fd951940e58edd0fb3dbfaf0999fb0e0fac18a5f",
|
51
51
|
"dependencies": {
|
52
52
|
"@arcblock/did-motif": "^1.1.13",
|
53
|
-
"@arcblock/icons": "^2.6.
|
54
|
-
"@arcblock/react-hooks": "^2.6.
|
53
|
+
"@arcblock/icons": "^2.6.7",
|
54
|
+
"@arcblock/react-hooks": "^2.6.7",
|
55
55
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
56
56
|
"@emotion/react": "^11.10.4",
|
57
57
|
"@emotion/styled": "^11.10.4",
|
@@ -21,6 +21,7 @@ import DisconnectIcon from '@arcblock/icons/lib/Disconnect';
|
|
21
21
|
import SwitchDidIcon from '@arcblock/icons/lib/Switch';
|
22
22
|
import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
|
23
23
|
import isEmpty from 'lodash/isEmpty';
|
24
|
+
import noop from 'lodash/noop';
|
24
25
|
|
25
26
|
import DidAvatar from '../Avatar';
|
26
27
|
import DidAddress from '../Address';
|
@@ -419,8 +420,6 @@ SessionManager.propTypes = {
|
|
419
420
|
size: PropTypes.number,
|
420
421
|
};
|
421
422
|
|
422
|
-
const noop = () => {};
|
423
|
-
|
424
423
|
SessionManager.defaultProps = {
|
425
424
|
locale: 'en',
|
426
425
|
showText: false,
|