Skip to content

Commit

Permalink
Upgrade treeview
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Jul 24, 2024
1 parent 567b77a commit 6ac1607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@mui/material": "^5.6.1",
"@mui/styles": "^5.12.0",
"@mui/x-data-grid": "^5.17.12",
"@mui/x-tree-view": "^7.11.0",
"@terraformer/wkt": "^2.2.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import TreeView from "@mui/lab/TreeView";
import { SimpleTreeView } from "@mui/x-tree-view";
import TreeItem from "@mui/lab/TreeItem";
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import ExpandLessIcon from "@mui/icons-material/ExpandLess";
Expand Down Expand Up @@ -73,7 +73,7 @@ const FilesTree = (props) => {
<LinearProgress color="hot" />
</Stack>
)}
<TreeView
<SimpleTreeView
aria-label="file system navigator"
defaultCollapseIcon={<ExpandMoreIcon />}
defaultExpandIcon={<ExpandLessIcon />}
Expand Down Expand Up @@ -126,7 +126,7 @@ const FilesTree = (props) => {
{/* <TreeItem key={key} nodeId="1" label="Applications">
<TreeItem nodeId="2" label="Calendar" />
</TreeItem> */}
</TreeView>
</SimpleTreeView>
</>
);
};
Expand Down

0 comments on commit 6ac1607

Please sign in to comment.