Clean up useFlexLayout

This commit is contained in:
tannerlinsley
2019-07-18 12:07:21 -06:00
parent 0ed0c78286
commit 0b0de317ee
+1 -15
View File
@@ -61,19 +61,11 @@ export const useFlexLayout = props => {
boxSizing: 'border-box',
...getStylesForColumn(column, columnMeasurements, defaultFlex, api),
},
// [refKey]: el => {
// renderedCellInfoRef.current[key] = {
// column,
// el
// };
// },
}))
getCellProps.push(cell => {
return {
style: {
// display: 'block',
// boxSizing: 'border-box',
...getStylesForColumn(
cell.column,
columnMeasurements,
@@ -82,12 +74,6 @@ export const useFlexLayout = props => {
api
),
},
// [refKey]: el => {
// renderedCellInfoRef.current[columnPathStr] = {
// column,
// el
// };
// }
}
})
@@ -151,4 +137,4 @@ function getSizesForColumn(
: getFirstDefined(width, minWidth, defaultFlex),
maxWidth,
}
}
}