awing-library 2.1.107-beta → 2.1.108-beta

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.
@@ -74,9 +74,11 @@ var SpanSortIndex = (0, styles_1.styled)('span')({
74
74
  });
75
75
  var DataGrid = function (props) {
76
76
  var columns = props.columns, rows = props.rows, _a = props.hideHeader, hideHeader = _a === void 0 ? false : _a, spanningRows = props.spanningRows, _b = props.spanningRowsPosition, spanningRowsPosition = _b === void 0 ? 'bottom' : _b, getRowId = props.getRowId, onRowClick = props.onRowClick, rowActions = props.rowActions, sortModel = props.sortModel, onSortModelChange = props.onSortModelChange, selected = props.selected, onSelectedChange = props.onSelectedChange, selectionActions = props.selectionActions, _c = props.pageIndex, pageIndex = _c === void 0 ? constants_1.PAGE_INDEX_DEFAULT : _c, _d = props.pageSize, pageSize = _d === void 0 ? constants_1.PAGE_SIZE_DEFAULT : _d, _e = props.totalOfRows, totalOfRows = _e === void 0 ? rows.length : _e, _f = props.rowsPerPageOptions, rowsPerPageOptions = _f === void 0 ? [10, 20, 30] : _f, onPageIndexChange = props.onPageIndexChange, onPageSizeChange = props.onPageSizeChange;
77
+ var _g = react_1.default.useState(), forceUpdate = _g[1];
77
78
  react_1.default.useEffect(function () {
78
79
  var language = localStorage.getItem('i18nextLng');
79
80
  i18n_1.default.changeLanguage(language || 'vi');
81
+ forceUpdate({});
80
82
  // eslint-disable-next-line react-hooks/exhaustive-deps
81
83
  }, [localStorage.getItem('i18nextLng')]);
82
84
  var createSortHandler = function (fieldName) { return function (event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.107-beta",
3
+ "version": "2.1.108-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",