mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
Revert "yarn: update react-complex-tree to v2.0.0"
This reverts commit f0434b50ed.
This requires react >= v18
This commit is contained in:
committed by
David Lechner
parent
f560370b51
commit
0cb585b3e7
@@ -370,7 +370,7 @@ const FileTree: React.VoidFunctionComponent = () => {
|
||||
[rootItemIndex]: {
|
||||
index: rootItemIndex,
|
||||
data: { fileName: '/' },
|
||||
isFolder: true,
|
||||
hasChildren: true,
|
||||
children: [...files].map((f) => f.uuid),
|
||||
},
|
||||
} as Record<TreeItemIndex, FileTreeItem>,
|
||||
|
||||
@@ -99,7 +99,7 @@ export const renderers: Omit<
|
||||
)}
|
||||
{...props.context.itemContainerWithoutChildrenProps}
|
||||
>
|
||||
{props.item.isFolder ? (
|
||||
{props.item.hasChildren ? (
|
||||
props.arrow
|
||||
) : (
|
||||
<span className={Classes.TREE_NODE_CARET_NONE} />
|
||||
|
||||
Reference in New Issue
Block a user