@carbonorm/carbonreact 3.3.11 → 3.3.12
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/dist/index.esm.js
CHANGED
|
@@ -1391,8 +1391,7 @@ function hexToRgb (hex) {
|
|
|
1391
1391
|
var styles = {"maintenance-hero":"C5KSPNF","maintenanceHero":"C5KSPNF","httpStatusCode":"NhyRQts","centeredContainer":"nA4Uno6","errorTextGeneral":"yJAgaUs","errorKeys":"SRIoY4m","error-values":"xQIsoNw","errorValues":"xQIsoNw","error-pre":"C6eWpJ3","errorPre":"C6eWpJ3","line-number":"NFRyo7M","lineNumber":"NFRyo7M","cl":"vR2jbfr","slide":"OO2C-Wp"};
|
|
1392
1392
|
|
|
1393
1393
|
function BackendThrowable() {
|
|
1394
|
-
const
|
|
1395
|
-
const bootstrap = CarbonORM.instance;
|
|
1394
|
+
const bootstrap = CarbonReact.instance;
|
|
1396
1395
|
const currentThrowable = bootstrap.state.backendThrowable[0];
|
|
1397
1396
|
console.log([bootstrap.state.backendThrowable, currentThrowable]);
|
|
1398
1397
|
return jsxRuntime_2("div", { className: styles.maintenanceHero, children: [jsxRuntime_1("h1", { className: styles.httpStatusCode, children: currentThrowable?.status || 500 }), jsxRuntime_1(OutsideClickHandler, { onOutsideClick: () => bootstrap.setState(currentState => ({ backendThrowable: currentState.backendThrowable.slice(1) })), children: jsxRuntime_1("div", { className: styles.centeredContainer, children: Object.keys(currentThrowable).map((key, index) => {
|