@blocklet/ui-react 2.4.37 → 2.4.39
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/Dashboard/index.js +4 -6
- package/lib/Header/index.js +4 -6
- package/package.json +4 -4
- package/src/Dashboard/index.js +2 -5
- package/src/Header/index.js +2 -5
package/lib/Dashboard/index.js
CHANGED
|
@@ -157,6 +157,7 @@ function Dashboard(_ref) {
|
|
|
157
157
|
links: localizedNav
|
|
158
158
|
}, rest), {}, {
|
|
159
159
|
headerProps: _objectSpread({
|
|
160
|
+
homeLink: _blocklets.publicPath,
|
|
160
161
|
brand: appName,
|
|
161
162
|
description: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Address.default, {
|
|
162
163
|
compact: true,
|
|
@@ -172,12 +173,9 @@ function Dashboard(_ref) {
|
|
|
172
173
|
}),
|
|
173
174
|
children: did
|
|
174
175
|
}),
|
|
175
|
-
logo: /*#__PURE__*/(0, _jsxRuntime.jsx)("
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
src: appLogo,
|
|
179
|
-
alt: "logo"
|
|
180
|
-
})
|
|
176
|
+
logo: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
177
|
+
src: appLogo,
|
|
178
|
+
alt: "logo"
|
|
181
179
|
}),
|
|
182
180
|
addons: _headerAddons
|
|
183
181
|
}, rest.headerProps)
|
package/lib/Header/index.js
CHANGED
|
@@ -174,12 +174,10 @@ function Header(_ref) {
|
|
|
174
174
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_overridableThemeProvider.default, {
|
|
175
175
|
theme: themeOverrides,
|
|
176
176
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledUxHeader, _objectSpread(_objectSpread({
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
alt: "logo"
|
|
182
|
-
})
|
|
177
|
+
homeLink: homeLink,
|
|
178
|
+
logo: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
179
|
+
src: appLogo,
|
|
180
|
+
alt: "logo"
|
|
183
181
|
}),
|
|
184
182
|
brand: appName,
|
|
185
183
|
description: did ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Address.default, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.39",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"url": "https://github.com/ArcBlock/ux/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@arcblock/did-connect": "^2.4.
|
|
34
|
-
"@arcblock/ux": "^2.4.
|
|
33
|
+
"@arcblock/did-connect": "^2.4.39",
|
|
34
|
+
"@arcblock/ux": "^2.4.39",
|
|
35
35
|
"@emotion/react": "^11.10.4",
|
|
36
36
|
"@emotion/styled": "^11.10.4",
|
|
37
37
|
"@iconify/iconify": "^2.2.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
54
54
|
"jest": "^28.1.3"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "73a00d536038df6b5c1eb282deb6c0b2c1dc9a42"
|
|
57
57
|
}
|
package/src/Dashboard/index.js
CHANGED
|
@@ -97,6 +97,7 @@ function Dashboard({ meta, fallbackUrl, invalidPathFallback, headerAddons, sessi
|
|
|
97
97
|
links={localizedNav}
|
|
98
98
|
{...rest}
|
|
99
99
|
headerProps={{
|
|
100
|
+
homeLink: publicPath,
|
|
100
101
|
brand: appName,
|
|
101
102
|
description: (
|
|
102
103
|
<DidAddress
|
|
@@ -108,11 +109,7 @@ function Dashboard({ meta, fallbackUrl, invalidPathFallback, headerAddons, sessi
|
|
|
108
109
|
{did}
|
|
109
110
|
</DidAddress>
|
|
110
111
|
),
|
|
111
|
-
logo:
|
|
112
|
-
<a href={publicPath}>
|
|
113
|
-
<img src={appLogo} alt="logo" />
|
|
114
|
-
</a>
|
|
115
|
-
),
|
|
112
|
+
logo: <img src={appLogo} alt="logo" />,
|
|
116
113
|
addons: _headerAddons,
|
|
117
114
|
...rest.headerProps,
|
|
118
115
|
}}
|
package/src/Header/index.js
CHANGED
|
@@ -89,11 +89,8 @@ function Header({ meta, addons, sessionManagerProps, homeLink, theme: themeOverr
|
|
|
89
89
|
return (
|
|
90
90
|
<OverridableThemeProvider theme={themeOverrides}>
|
|
91
91
|
<StyledUxHeader
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<img src={appLogo} alt="logo" />
|
|
95
|
-
</a>
|
|
96
|
-
}
|
|
92
|
+
homeLink={homeLink}
|
|
93
|
+
logo={<img src={appLogo} alt="logo" />}
|
|
97
94
|
brand={appName}
|
|
98
95
|
description={
|
|
99
96
|
did ? (
|