From 0b0de317ee975190b30b39d3f17ede8b166a3154 Mon Sep 17 00:00:00 2001 From: tannerlinsley Date: Thu, 18 Jul 2019 12:07:21 -0600 Subject: [PATCH] Clean up useFlexLayout --- src/hooks/useFlexLayout.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/hooks/useFlexLayout.js b/src/hooks/useFlexLayout.js index dd4e45a..8acc509 100755 --- a/src/hooks/useFlexLayout.js +++ b/src/hooks/useFlexLayout.js @@ -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, } -} \ No newline at end of file +}