fix(cockpit/editor): remove arrows next to files in file explorer

This commit is contained in:
Jonathan Rainville 2018-12-11 12:24:27 -05:00
parent ebd827bc55
commit d30b00e526
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import { getTheme } from '../reducers/selectors';
class FileExplorerRowContainer extends React.Component { class FileExplorerRowContainer extends React.Component {
constructor(props) { constructor(props) {
super(props) super(props);
this.state = {active: false}; this.state = {active: false};
this.addFileModal = React.createRef(); this.addFileModal = React.createRef();
this.addFolderModal = React.createRef(); this.addFolderModal = React.createRef();
@ -68,7 +68,7 @@ class FileExplorerRowContainer extends React.Component {
onMouseEnter={() => this.activateNode()} onMouseEnter={() => this.activateNode()}
onMouseLeave={() => this.deactivateNode()}> onMouseLeave={() => this.deactivateNode()}>
<span onClick={this.props.onClick}> <span onClick={this.props.onClick}>
<this.props.decorators.Toggle style={this.props.style.toggle}/> {this.props.node.children && <this.props.decorators.Toggle style={this.props.style.toggle}/>}
<this.props.decorators.Header node={this.props.node} style={this.props.style.header}/> <this.props.decorators.Header node={this.props.node} style={this.props.style.header}/>
</span> </span>
{this.state.active && this.renderAction()} {this.state.active && this.renderAction()}