docs: Fix indent

This commit is contained in:
Wei Zhu 2018-05-14 12:28:51 +08:00
parent 413479a5b9
commit bf03d954d4

View File

@ -106,7 +106,7 @@ class Demo extends React.Component {
render() {
const loop = data => data.map((item) => {
if (item.children && item.children.length) {
       return <TreeNode key={item.key} title={item.title}>{loop(item.children)}</TreeNode>;
return <TreeNode key={item.key} title={item.title}>{loop(item.children)}</TreeNode>;
}
return <TreeNode key={item.key} title={item.title} />;
});