mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Renamed TreeWrapper to innerElementType
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user