@blocklet/ui-react 2.1.34 → 2.1.35
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/lib/Header/index.js +1 -3
- package/package.json +4 -4
- package/src/Header/index.js +1 -2
package/lib/Header/index.js
CHANGED
|
@@ -194,14 +194,12 @@ function Header(_ref) {
|
|
|
194
194
|
$bgcolor: theme === null || theme === void 0 ? void 0 : theme.background,
|
|
195
195
|
children: !(navItems !== null && navItems !== void 0 && navItems.length) ? null : _ref2 => {
|
|
196
196
|
let {
|
|
197
|
-
isMobile
|
|
198
|
-
closeMenu
|
|
197
|
+
isMobile
|
|
199
198
|
} = _ref2;
|
|
200
199
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_NavMenu.default, {
|
|
201
200
|
mode: isMobile ? 'inline' : 'horizontal',
|
|
202
201
|
activeId: activeId,
|
|
203
202
|
items: navItems,
|
|
204
|
-
onSelected: closeMenu,
|
|
205
203
|
className: "header-nav",
|
|
206
204
|
bgColor: "transparent"
|
|
207
205
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.35",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"url": "https://github.com/ArcBlock/ux/issues"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@arcblock/did-connect": "^2.1.
|
|
38
|
-
"@arcblock/ux": "^2.1.
|
|
37
|
+
"@arcblock/did-connect": "^2.1.35",
|
|
38
|
+
"@arcblock/ux": "^2.1.35",
|
|
39
39
|
"@iconify/iconify": "^2.2.1",
|
|
40
40
|
"@mui/material": "^5.6.4",
|
|
41
41
|
"core-js": "^3.6.4",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
58
58
|
"jest": "^24.1.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "c414716f6cc96f0e6a376a334b8cc6a5d5dedb6b"
|
|
61
61
|
}
|
package/src/Header/index.js
CHANGED
|
@@ -110,12 +110,11 @@ function Header({ meta, addons, sessionManagerProps, ...rest }) {
|
|
|
110
110
|
{/* blocklet.yml 没有配置 navigation 时, 则为 children 传入 null, 此时 ResponsiveHeader 会渲染普通的不带 menu 的 Header */}
|
|
111
111
|
{!navItems?.length
|
|
112
112
|
? null
|
|
113
|
-
: ({ isMobile
|
|
113
|
+
: ({ isMobile }) => (
|
|
114
114
|
<NavMenu
|
|
115
115
|
mode={isMobile ? 'inline' : 'horizontal'}
|
|
116
116
|
activeId={activeId}
|
|
117
117
|
items={navItems}
|
|
118
|
-
onSelected={closeMenu}
|
|
119
118
|
className="header-nav"
|
|
120
119
|
bgColor="transparent"
|
|
121
120
|
/>
|