Web: Components : Row : Renamed width property, fixed usage
This commit is contained in:
parent
7ed2d7a00c
commit
50983c5f0f
@ -104,7 +104,7 @@ class Row extends React.Component {
|
||||
indeterminate,
|
||||
onSelect,
|
||||
selectItem,
|
||||
widthProp,
|
||||
sectionWidth,
|
||||
} = this.props;
|
||||
|
||||
const renderCheckbox = Object.prototype.hasOwnProperty.call(
|
||||
@ -119,7 +119,7 @@ class Row extends React.Component {
|
||||
|
||||
const renderContentElement =
|
||||
Object.prototype.hasOwnProperty.call(this.props, "contentElement") &&
|
||||
widthProp > 500;
|
||||
sectionWidth > 500;
|
||||
|
||||
const renderContext =
|
||||
Object.prototype.hasOwnProperty.call(this.props, "contextOptions") &&
|
||||
@ -176,7 +176,7 @@ Row.propTypes = {
|
||||
checked: PropTypes.bool,
|
||||
children: PropTypes.element,
|
||||
className: PropTypes.string,
|
||||
contentElement: PropTypes.element,
|
||||
contentElement: PropTypes.any,
|
||||
contextButtonSpacerWidth: PropTypes.string,
|
||||
contextOptions: PropTypes.array,
|
||||
data: PropTypes.object,
|
||||
@ -187,7 +187,7 @@ Row.propTypes = {
|
||||
onSelect: PropTypes.func,
|
||||
selectItem: PropTypes.func,
|
||||
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
||||
widthProp: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
sectionWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
};
|
||||
|
||||
Row.defaultProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user