mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 21:12:41 +00:00
Shift to [].includes
This commit is contained in:
@@ -69,7 +69,7 @@ const Snippetbar = createClass({
|
|||||||
if(!this.props.showEditButtons) return;
|
if(!this.props.showEditButtons) return;
|
||||||
|
|
||||||
return <div className='editors'>
|
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} >
|
onClick={this.toTop} >
|
||||||
<i className='fas fa-arrow-up' />
|
<i className='fas fa-arrow-up' />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user