@arcblock/ux 2.4.39 → 2.4.40
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/header.js +1 -1
- package/package.json +4 -4
- package/src/Header/header.js +9 -7
package/lib/Header/header.js
CHANGED
@@ -59,7 +59,7 @@ function Header(_ref) {
|
|
59
59
|
children: [logo && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
60
60
|
className: "header-logo",
|
61
61
|
children: logo
|
62
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_autoHidden.default, {
|
62
|
+
}), brand && /*#__PURE__*/(0, _jsxRuntime.jsx)(_autoHidden.default, {
|
63
63
|
height: 44,
|
64
64
|
sx: {
|
65
65
|
flexShrink: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.4.
|
3
|
+
"version": "2.4.40",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -47,10 +47,10 @@
|
|
47
47
|
"react": ">=18.1.0",
|
48
48
|
"react-ga": "^2.7.0"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "c26da2c4ed0c311c2dceab75db245f0290344860",
|
51
51
|
"dependencies": {
|
52
|
-
"@arcblock/icons": "^2.4.
|
53
|
-
"@arcblock/react-hooks": "^2.4.
|
52
|
+
"@arcblock/icons": "^2.4.40",
|
53
|
+
"@arcblock/react-hooks": "^2.4.40",
|
54
54
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
55
55
|
"@emotion/react": "^11.10.4",
|
56
56
|
"@emotion/styled": "^11.10.4",
|
package/src/Header/header.js
CHANGED
@@ -25,14 +25,16 @@ function Header({
|
|
25
25
|
const brandContent = (
|
26
26
|
<>
|
27
27
|
{logo && <div className="header-logo">{logo}</div>}
|
28
|
-
|
29
|
-
<
|
30
|
-
<div className="header-brand
|
31
|
-
<
|
28
|
+
{brand && (
|
29
|
+
<AutoHidden height={44} sx={{ flexShrink: { xs: 1 } }}>
|
30
|
+
<div className="header-brand">
|
31
|
+
<div className="header-brand-title">
|
32
|
+
<h2>{brand}</h2>
|
33
|
+
</div>
|
34
|
+
<div className="header-brand-desc">{description}</div>
|
32
35
|
</div>
|
33
|
-
|
34
|
-
|
35
|
-
</AutoHidden>
|
36
|
+
</AutoHidden>
|
37
|
+
)}
|
36
38
|
</>
|
37
39
|
);
|
38
40
|
if (typeof homeLink === 'function') {
|