1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Move condition of trash or not

This commit is contained in:
asmsuechan
2017-08-14 10:07:20 +09:00
parent 105119e1a4
commit 7f52eed4d5
2 changed files with 20 additions and 23 deletions

View File

@@ -68,27 +68,23 @@ class NewNoteButton extends React.Component {
}
render () {
const { config, style, data, location } = this.props
if (location.pathname === '/trashed') {
return ''
} else {
return (
<div className='NewNoteButton'
styleName={config.isSideNavFolded ? 'root--expanded' : 'root'}
style={style}
>
<div styleName='control'>
<button styleName='control-newNoteButton'
onClick={(e) => this.handleNewNoteButtonClick(e)}>
<i className='fa fa-pencil-square-o' />
<span styleName='control-newNoteButton-tooltip'>
Make a Note {OSX ? '⌘' : '^'} + n
</span>
</button>
</div>
const { config, style, data } = this.props
return (
<div className='NewNoteButton'
styleName={config.isSideNavFolded ? 'root--expanded' : 'root'}
style={style}
>
<div styleName='control'>
<button styleName='control-newNoteButton'
onClick={(e) => this.handleNewNoteButtonClick(e)}>
<i className='fa fa-pencil-square-o' />
<span styleName='control-newNoteButton-tooltip'>
Make a Note {OSX ? '⌘' : '^'} + n
</span>
</button>
</div>
)
}
</div>
)
}
}