Skip to content

Commit 1dd5f12

Browse files
committed
Exclude findDOMNode from usage.
1 parent f2f2570 commit 1dd5f12

File tree

6 files changed

+173
-187
lines changed

6 files changed

+173
-187
lines changed

src/node-renderer-default.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react'
2-
// eslint-disable-next-line import/named
32
import { ConnectDragPreview, ConnectDragSource } from 'react-dnd'
43
import { classnames } from './utils/classnames'
54
import { isDescendant } from './utils/tree-data-utils'
@@ -98,7 +97,6 @@ const NodeRendererDefault: React.FC<NodeRendererProps> = function (props) {
9897
<div className="rst__loadingCircle">
9998
{[...Array.from({ length: 12 })].map((_, index) => (
10099
<div
101-
// eslint-disable-next-line react/no-array-index-key
102100
key={index}
103101
className={classnames(
104102
'rst__loadingCirclePoint',
@@ -217,9 +215,7 @@ const NodeRendererDefault: React.FC<NodeRendererProps> = function (props) {
217215

218216
<div className="rst__rowToolbar">
219217
{buttons?.map((btn, index) => (
220-
<div
221-
key={index} // eslint-disable-line react/no-array-index-key
222-
className="rst__toolbarButton">
218+
<div key={index} className="rst__toolbarButton">
223219
{btn}
224220
</div>
225221
))}

0 commit comments

Comments
 (0)