@omniumretail/component-library 1.3.9 → 1.3.11
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.
|
@@ -24858,8 +24858,8 @@ const ResponsiveTable = (props) => {
|
|
|
24858
24858
|
cleanCellSelection,
|
|
24859
24859
|
cellSelectionStyle,
|
|
24860
24860
|
renderSelectedCell,
|
|
24861
|
-
useOrderedCellSelection = true
|
|
24862
|
-
|
|
24861
|
+
useOrderedCellSelection = true,
|
|
24862
|
+
initialSelectedCells
|
|
24863
24863
|
} = props;
|
|
24864
24864
|
const [customFilters, setCustomFilters] = useState([]);
|
|
24865
24865
|
const [customColumns, setCustomColumns] = useState([]);
|
|
@@ -24867,7 +24867,7 @@ const ResponsiveTable = (props) => {
|
|
|
24867
24867
|
const [selectedRowKeys, setselectedRowKeys] = useState(rowSelection?.selectedRowKeys || []);
|
|
24868
24868
|
const [selectedAllRowKeys, setSelectedAllRowKeys] = useState(false);
|
|
24869
24869
|
const [deselectAll, setDeselectAll] = useState(false);
|
|
24870
|
-
const [selectedCells, setSelectedCells] = useState([]);
|
|
24870
|
+
const [selectedCells, setSelectedCells] = useState(initialSelectedCells || []);
|
|
24871
24871
|
const defaultCellStyle = {
|
|
24872
24872
|
firstCell: {
|
|
24873
24873
|
backgroundColor: "#ffebee",
|
|
@@ -25194,7 +25194,7 @@ const ResponsiveTable = (props) => {
|
|
|
25194
25194
|
);
|
|
25195
25195
|
setCustomFilters(filters);
|
|
25196
25196
|
}
|
|
25197
|
-
}, [dataSource
|
|
25197
|
+
}, [dataSource]);
|
|
25198
25198
|
const shouldRenderSortDropdown = customFilters.length > 0;
|
|
25199
25199
|
const tableWrapperClasses = classNames({
|
|
25200
25200
|
[styles$7.tableWrapperNoSelection]: !rowSelection
|