Created
January 20, 2019 12:09
-
-
Save DmitryMarkov/d99d3083c4096dbcd8e68397abcd66ae to your computer and use it in GitHub Desktop.
FolderList
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const FolderName = ({ folder: { name }, level }) => ( | |
<div style={{ paddingLeft: level * 20 }}>{name}</div> | |
) | |
const FolderList = ({ folders }) => ( | |
<> | |
<TreeComponent folders={folders}> | |
{(props) => (<FolderName {...props} />)} | |
</TreeComponent> | |
</> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment