Skip to content

Commit 81d3ee2

Browse files
Merge pull request #2813 from openedx/master
sync: master to alpha
1 parent 4cce07b commit 81d3ee2

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/DataTable/ExpandRow.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import IconButton from '../IconButton';
66

77
const EXPAND_COLLAPSE_ICON_SIZE = 'inline';
88

9-
function ExpandRow({ row, ...rest }) {
9+
function ExpandRow({ row }) {
1010
return (
11-
<span {...row.getToggleRowExpandedProps()} {...rest}>
11+
<span {...row.getToggleRowExpandedProps()}>
1212
{row.isExpanded
1313
? <IconButton src={ExpandLess} iconAs={Icon} alt="Collapse row" size={EXPAND_COLLAPSE_ICON_SIZE} />
1414
: <IconButton src={ExpandMore} iconAs={Icon} alt="Expand row" size={EXPAND_COLLAPSE_ICON_SIZE} />}

src/DataTable/selection/ControlledSelect.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
addSelectedRowAction,
1111
} from './data/actions';
1212

13-
function ControlledSelect({ row, ...rest }) {
13+
function ControlledSelect({ row }) {
1414
const {
1515
itemCount,
1616
controlledTableSelections: [, dispatch],
@@ -34,7 +34,6 @@ function ControlledSelect({ row, ...rest }) {
3434
<CheckboxControl
3535
{...updatedProps}
3636
onChange={toggleSelected}
37-
{...rest}
3837
/>
3938
</div>
4039
);

src/DataTable/selection/ControlledSelectHeader.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
setSelectedRowsAction,
1010
} from './data/actions';
1111

12-
function ControlledSelectHeader({ rows, ...rest }) {
12+
function ControlledSelectHeader({ rows }) {
1313
const {
1414
itemCount,
1515
controlledTableSelections: [, dispatch],
@@ -44,7 +44,6 @@ function ControlledSelectHeader({ rows, ...rest }) {
4444
<CheckboxControl
4545
{...toggleAllPageRowsSelectedProps}
4646
onChange={toggleAllPageRowsSelected}
47-
{...rest}
4847
/>
4948
</div>
5049
);

src/DataTable/selection/ControlledSelectionStatus.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
getRowIds,
1515
} from './data/helpers';
1616

17-
function ControlledSelectionStatus({ className, clearSelectionText, ...rest }) {
17+
function ControlledSelectionStatus({ className, clearSelectionText }) {
1818
const {
1919
itemCount,
2020
page,
@@ -44,7 +44,6 @@ function ControlledSelectionStatus({ className, clearSelectionText, ...rest }) {
4444
clearSelectionText,
4545
onSelectAll: () => dispatch(setSelectAllRowsAllPagesAction()),
4646
onClear: () => dispatch(clearSelectionAction()),
47-
...rest,
4847
};
4948
return <BaseSelectionStatus {...selectionStatusProps} />;
5049
}

0 commit comments

Comments
 (0)