@sis-cc/dotstatsuite-visions 8.0.5 → 8.0.6
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2
2
|
|
|
3
|
-
import React, { Fragment, useState,
|
|
3
|
+
import React, { Fragment, useState, useEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as R from 'ramda';
|
|
@@ -67,7 +67,7 @@ var TableLayout = function TableLayout(_ref) {
|
|
|
67
67
|
|
|
68
68
|
var boxLabel = (_boxLabel = {}, _boxLabel[BOX.header] = labels.column || BOX.header, _boxLabel[BOX.sections] = labels.section || BOX.sections, _boxLabel[BOX.rows] = labels.row || BOX.rows, _boxLabel);
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
useEffect(function () {
|
|
71
71
|
return setCurrentLayout(rejectHiddenElement(layout));
|
|
72
72
|
}, [layout]);
|
|
73
73
|
|
|
@@ -123,7 +123,7 @@ var TableLayout = function TableLayout(_ref) {
|
|
|
123
123
|
|
|
124
124
|
var boxLabel = (_boxLabel = {}, _boxLabel[_constants.BOX.header] = labels.column || _constants.BOX.header, _boxLabel[_constants.BOX.sections] = labels.section || _constants.BOX.sections, _boxLabel[_constants.BOX.rows] = labels.row || _constants.BOX.rows, _boxLabel);
|
|
125
125
|
|
|
126
|
-
(0, _react.
|
|
126
|
+
(0, _react.useEffect)(function () {
|
|
127
127
|
return setCurrentLayout((0, _lib.rejectHiddenElement)(layout));
|
|
128
128
|
}, [layout]);
|
|
129
129
|
|