mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-25 22:42:41 +00:00
Shift to [].includes
This commit is contained in:
@@ -69,7 +69,7 @@ const Snippetbar = createClass({
|
||||
if(!this.props.showEditButtons) return;
|
||||
|
||||
return <div className='editors'>
|
||||
<div className={`editorTool toTop ${this.props.view != 'meta' ? 'active' : ''}`}
|
||||
<div className={`editorTool toTop ${['text', 'style'].includes(this.props.view) ? 'active' : ''}`}
|
||||
onClick={this.toTop} >
|
||||
<i className='fas fa-arrow-up' />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user