Renamed innerElementType -> InnerElementType to avoid confusing hooks lint rule
Brian Vaughn committed
Apr 4, 2019 at 14:10 UTC
6c5c2cd3ad6b8978414a8e8536778521352c804f
1 file changed
+2
-2
src/devtools/views/Components/Tree.js
+2
-2
@@ -113,7 +113,7 @@ export default function Tree(props: Props) {
113
<FixedSizeList
114
className={styles.List}
115
height={height}
116
- innerElementType={innerElementType}
116
+ innerElementType={InnerElementType}
117
itemCount={numElements}
118
itemData={itemData}
119
itemSize={lineHeight}
@@ -129,7 +129,7 @@ export default function Tree(props: Props) {
129
);
130
}
131
132
-function innerElementType({ style, ...rest }) {
132
+function InnerElementType({ style, ...rest }) {
133
const {
134
numElements,
135
selectedElementIndex,