Renamed TreeWrapper to innerElementType

This commit is contained in:
Brian Vaughn
2019-04-04 10:08:48 -07:00
parent c86793ef18
commit ded2ce03ee
+2 -2
View File
@@ -113,7 +113,7 @@ export default function Tree(props: Props) {
<FixedSizeList
className={styles.List}
height={height}
innerElementType={TreeWrapper}
innerElementType={innerElementType}
itemCount={numElements}
itemData={itemData}
itemSize={lineHeight}
@@ -129,7 +129,7 @@ export default function Tree(props: Props) {
);
}
function TreeWrapper({ style, ...rest }) {
function innerElementType({ style, ...rest }) {
const {
numElements,
selectedElementIndex,