Skip to content

Commit fb1286d

Browse files
committed
Render node icon in a manner consistent with the other icons
1 parent c58882e commit fb1286d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/js/TreeNode.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ class TreeNode extends React.Component {
8181
}
8282

8383
renderNodeIcon() {
84-
if (this.props.rawChildren !== null) {
85-
if (!this.props.expanded) {
86-
return <i className="fa fa-folder-o" />;
87-
}
84+
if (this.props.rawChildren === null) {
85+
return <i className="fa fa-file-o" />;
86+
}
8887

89-
return <i className="fa fa-folder-open-o" />;
88+
if (!this.props.expanded) {
89+
return <i className="fa fa-folder-o" />;
9090
}
9191

92-
return <i className="fa fa-file-o" />;
92+
return <i className="fa fa-folder-open-o" />;
9393
}
9494

9595
renderChildren() {

0 commit comments

Comments
 (0)