cleanup all but one linting issue (#1232)

This commit is contained in:
Josh McCullough
2019-01-31 12:08:31 -05:00
committed by Tanner Linsley
parent c7d2c36454
commit 221164484f
3 changed files with 8 additions and 7 deletions

View File

@@ -666,8 +666,9 @@ export default class ReactTable extends Methods(Lifecycle(Component)) {
isExpanded &&
rowInfo.subRows.map((d, i) => makePageRow(d, i, rowInfo.nestingPath))}
{SubComponent && !rowInfo.subRows && isExpanded && SubComponent(rowInfo, () => {
let newExpanded = _.clone(expanded)
newExpanded = _.set(newExpanded, cellInfo.nestingPath, false)
const newExpanded = _.clone(expanded)
_.set(newExpanded, cellInfo.nestingPath, false)
})}
</TrGroupComponent>
)

View File

@@ -618,8 +618,8 @@ export default Base =>
event.stopPropagation()
const { onResizedChange, column } = this.props
const { resized, currentlyResizing, columns } = this.getResolvedState()
const currentColumn = columns.find(c => c.accessor === currentlyResizing.id);
const minResizeWidth = currentColumn ? currentColumn.minResizeWidth : column.minResizeWidth;
const currentColumn = columns.find(c => c.accessor === currentlyResizing.id)
const minResizeWidth = currentColumn ? currentColumn.minResizeWidth : column.minResizeWidth
// Delete old value
const newResized = resized.filter(x => x.id !== currentlyResizing.id)

View File

@@ -118,7 +118,7 @@ export default {
getFooterProps: PropTypes.func,
filterMethod: PropTypes.func,
filterAll: PropTypes.bool,
sortMethod: PropTypes.func
sortMethod: PropTypes.func,
})
),
@@ -127,7 +127,7 @@ export default {
sortable: PropTypes.bool,
resizable: PropTypes.bool,
filterable: PropTypes.bool,
width: PropTypes.number
width: PropTypes.number,
}),
pivotDefaults: PropTypes.object,
@@ -165,5 +165,5 @@ export default {
LoadingComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
NoDataComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
ResizerComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
PadRowComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element])
PadRowComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
}