fix: useExpanded - utils update (#2738)
fix: useExpanded - utils update (#2738)

When expandSubRows is set to false, subRows no longer get access to isExpanded or canExpand.
This change fixes this
react-tools/react-table,tannerlinsley/react-table