@blocklet/pages-kit-runtime 0.1.9 → 0.1.10
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/cjs/client.js
CHANGED
|
@@ -14,8 +14,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
var _a;
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
|
-
const
|
|
18
|
-
const
|
|
17
|
+
const Result_1 = __importDefault(require("@arcblock/ux/lib/Result"));
|
|
18
|
+
const Spinner_1 = __importDefault(require("@arcblock/ux/lib/Spinner"));
|
|
19
19
|
const js_sdk_1 = require("@blocklet/js-sdk");
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
const home_1 = __importDefault(require("@blocklet/pages-kit-inner-components/home"));
|
|
@@ -39,11 +39,11 @@ exports.default = (props) => {
|
|
|
39
39
|
refreshDeps: [props.did],
|
|
40
40
|
});
|
|
41
41
|
if (loading) {
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)(CenteredContainer, { children: (0, jsx_runtime_1.jsx)(
|
|
42
|
+
return ((0, jsx_runtime_1.jsx)(CenteredContainer, { children: (0, jsx_runtime_1.jsx)(Spinner_1.default, {}) }));
|
|
43
43
|
}
|
|
44
44
|
// @ts-ignore
|
|
45
45
|
if (!window.__PAGE_STATE__) {
|
|
46
|
-
return ((0, jsx_runtime_1.jsx)(CenteredContainer, { children: (0, jsx_runtime_1.jsx)(
|
|
46
|
+
return ((0, jsx_runtime_1.jsx)(CenteredContainer, { children: (0, jsx_runtime_1.jsx)(Result_1.default, { status: 404 }) }));
|
|
47
47
|
}
|
|
48
48
|
return (0, jsx_runtime_1.jsx)(home_1.default, {});
|
|
49
49
|
};
|