XeNote/components/FileNavBar.js

21 lines
562 B
JavaScript
Raw Normal View History

2022-03-23 03:50:06 +00:00
import FolderTree, {initializedTestData, testData} from 'react-folder-tree';
import 'react-folder-tree/dist/style.css';
const BasicTree = ({directoryTree}) => {
const onTreeStateChange = (state, event) => console.log(state, event);
// console.log(initializedTestData)
// console.log(directoryTree)
// console.log("_-------_")
console.log(testData)
return (
<FolderTree
data={directoryTree}
onChange={ onTreeStateChange }
showCheckbox={ false }
/>
);
};
export default BasicTree;