Skip to content

Commit

Permalink
fix(react-grid): do not pass the row property to the table edit com…
Browse files Browse the repository at this point in the history
…mand cell (#890)
  • Loading branch information
gsobolev authored Apr 3, 2018
1 parent 4e23f80 commit 610343c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ EditCommandHeadingCell.defaultProps = {
};

export const EditCommandCell = ({
children,
style,
tableColumn, tableRow,
tableColumn, tableRow, row,
children, style,
...restProps
}) => (
<td
Expand All @@ -87,11 +86,13 @@ EditCommandCell.propTypes = {
style: PropTypes.object,
tableColumn: PropTypes.object,
tableRow: PropTypes.object,
row: PropTypes.object,
};

EditCommandCell.defaultProps = {
children: undefined,
style: null,
tableColumn: undefined,
tableRow: undefined,
row: undefined,
};
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ EditCommandHeadingCell.defaultProps = {
};

export const EditCommandCell = ({
tableColumn, tableRow, row,
children, className,
tableColumn, tableRow,
...restProps
}) => (
<td
Expand All @@ -80,12 +80,14 @@ EditCommandCell.propTypes = {
]),
tableColumn: PropTypes.object,
tableRow: PropTypes.object,
row: PropTypes.object,
className: PropTypes.string,
};

EditCommandCell.defaultProps = {
children: undefined,
tableColumn: undefined,
tableRow: undefined,
row: undefined,
className: undefined,
};
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,8 @@ EditCommandHeadingCellBase.defaultProps = {
export const EditCommandHeadingCell = withEditColumnStyles(EditCommandHeadingCellBase);

const EditCommandCellBase = ({
children,
style,
classes,
className,
tableRow, tableColumn,
tableRow, tableColumn, row, children,
style, classes, className,
...restProps
}) => (
<TableCell
Expand All @@ -116,6 +113,7 @@ EditCommandCellBase.propTypes = {
className: PropTypes.string,
tableRow: PropTypes.object,
tableColumn: PropTypes.object,
row: PropTypes.object,
};

EditCommandCellBase.defaultProps = {
Expand All @@ -124,6 +122,7 @@ EditCommandCellBase.defaultProps = {
className: undefined,
tableRow: undefined,
tableColumn: undefined,
row: undefined,
};

export const EditCommandCell = withEditColumnStyles(EditCommandCellBase);

0 comments on commit 610343c

Please sign in to comment.