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