Removing SidebarToggleButton, moving trigger to thumb-friendly buttom-right
This commit is contained in:
@ -3,7 +3,6 @@ import React, { PropTypes } from 'react'
|
||||
import FontAwesome from 'react-fontawesome'
|
||||
|
||||
import Icon from './Icon'
|
||||
import SidebarToggleButton from './SidebarToggleButton'
|
||||
import ContextMenuTrigger from './ContextMenuTrigger'
|
||||
|
||||
export default class Header extends React.Component{
|
||||
@ -34,7 +33,9 @@ export default class Header extends React.Component{
|
||||
}
|
||||
|
||||
renderOptions(){
|
||||
if (!this.props.options && !this.props.handleContextMenuTrigger) return null
|
||||
if (!this.props.options && !this.props.handleContextMenuTrigger){
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='options'>
|
||||
@ -52,7 +53,6 @@ export default class Header extends React.Component{
|
||||
return (
|
||||
<header className={(this.props.className ? this.props.className : null)}>
|
||||
{this.props.icon ? <Icon name={this.props.icon} /> : null}
|
||||
<SidebarToggleButton />
|
||||
{this.props.title ? <h1>{ this.props.title }</h1> : null}
|
||||
{this.renderOptions()}
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user