x25 5.1.4 → 5.1.5
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/Async/RouteLoading.js +4 -5
- package/package.json +1 -1
package/Async/RouteLoading.js
CHANGED
|
@@ -10,10 +10,6 @@ var _react2 = _interopRequireDefault(_react);
|
|
|
10
10
|
|
|
11
11
|
var _Loading = require("../Messages/Loading");
|
|
12
12
|
|
|
13
|
-
var _SimulatedException = require("./SimulatedException");
|
|
14
|
-
|
|
15
|
-
var _SimulatedException2 = _interopRequireDefault(_SimulatedException);
|
|
16
|
-
|
|
17
13
|
var _Error = require("../Messages/Error");
|
|
18
14
|
|
|
19
15
|
var _Error2 = _interopRequireDefault(_Error);
|
|
@@ -30,13 +26,15 @@ var RouteLoading = function RouteLoading(_ref) {
|
|
|
30
26
|
// eslint-disable-next-line no-console
|
|
31
27
|
console.log("theError");
|
|
32
28
|
// eslint-disable-next-line no-console
|
|
29
|
+
console.log(theError.name);
|
|
30
|
+
// eslint-disable-next-line no-console
|
|
33
31
|
console.log(theError);
|
|
34
32
|
|
|
35
33
|
if (theError.name === "ChunkLoadError") {
|
|
36
34
|
return _react2.default.createElement(_Error2.default, { message: "Pagina nu a putut fi \xEEnc\u0103rcat\u0103. V\u0103 rug\u0103m s\u0103 face\u021Bi refresh la pagin\u0103" });
|
|
37
35
|
}
|
|
38
36
|
|
|
39
|
-
|
|
37
|
+
return null;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
if (timedOut) {
|
|
@@ -60,5 +58,6 @@ var RouteLoading = function RouteLoading(_ref) {
|
|
|
60
58
|
_react2.default.createElement(_Loading.LoadingMessage, { message: "A\u0219teapt\u0103 un pic..." })
|
|
61
59
|
);
|
|
62
60
|
};
|
|
61
|
+
// import SimulatedException from "./SimulatedException";
|
|
63
62
|
|
|
64
63
|
exports.default = RouteLoading;
|
package/package.json
CHANGED