@openmrs/esm-styleguide 5.3.3-pre.1286 → 5.3.3-pre.1296
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[34m@openmrs/esm-styleguide:build[0m: cache hit, replaying output [
|
|
1
|
+
[34m@openmrs/esm-styleguide:build[0m: cache hit, replaying output [2m27ca0b84a087e919[0m
|
|
2
2
|
[34m@openmrs/esm-styleguide:build: [0mBrowserslist: caniuse-lite is outdated. Please run:
|
|
3
3
|
[34m@openmrs/esm-styleguide:build: [0m npx update-browserslist-db@latest
|
|
4
4
|
[34m@openmrs/esm-styleguide:build: [0m Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
[34m@openmrs/esm-styleguide:build: [0mYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
|
|
54
54
|
[34m@openmrs/esm-styleguide:build: [0mFor more info visit https://webpack.js.org/guides/code-splitting/[39m[22m
|
|
55
55
|
[34m@openmrs/esm-styleguide:build: [0m
|
|
56
|
-
[34m@openmrs/esm-styleguide:build: [0mwebpack 5.88.0 compiled with [1m[33m3 warnings[39m[22m in
|
|
56
|
+
[34m@openmrs/esm-styleguide:build: [0mwebpack 5.88.0 compiled with [1m[33m3 warnings[39m[22m in 15738 ms
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-styleguide",
|
|
3
|
-
"version": "5.3.3-pre.
|
|
3
|
+
"version": "5.3.3-pre.1296",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-styleguide.js",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"rxjs": "6.x"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@openmrs/esm-extensions": "5.3.3-pre.
|
|
64
|
-
"@openmrs/esm-react-utils": "5.3.3-pre.
|
|
65
|
-
"@openmrs/esm-state": "5.3.3-pre.
|
|
63
|
+
"@openmrs/esm-extensions": "5.3.3-pre.1296",
|
|
64
|
+
"@openmrs/esm-react-utils": "5.3.3-pre.1296",
|
|
65
|
+
"@openmrs/esm-state": "5.3.3-pre.1296",
|
|
66
66
|
"autoprefixer": "^9.8.8",
|
|
67
67
|
"css-minimizer-webpack-plugin": "^1.2.0",
|
|
68
68
|
"i18next": "^21.10.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Tile } from '@carbon/react';
|
|
2
|
+
import { Layer, Tile } from '@carbon/react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLayoutType } from '@openmrs/esm-react-utils';
|
|
5
5
|
import styles from './error-state.module.scss';
|
|
@@ -14,20 +14,22 @@ export const ErrorState: React.FC<ErrorStateProps> = ({ error, headerTitle }) =>
|
|
|
14
14
|
const isTablet = useLayoutType() === 'tablet';
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
<Layer>
|
|
18
|
+
<Tile className={styles.tile}>
|
|
19
|
+
<div className={isTablet ? styles.tabletHeading : styles.desktopHeading}>
|
|
20
|
+
<h4>{headerTitle}</h4>
|
|
21
|
+
</div>
|
|
22
|
+
<p className={styles.errorMessage}>
|
|
23
|
+
{t('error', 'Error')} {`${error?.response?.status}: `}
|
|
24
|
+
{error?.response?.statusText}
|
|
25
|
+
</p>
|
|
26
|
+
<p className={styles.errorCopy}>
|
|
27
|
+
{t(
|
|
28
|
+
'errorCopy',
|
|
29
|
+
'Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.',
|
|
30
|
+
)}
|
|
31
|
+
</p>
|
|
32
|
+
</Tile>
|
|
33
|
+
</Layer>
|
|
32
34
|
);
|
|
33
35
|
};
|