0
0
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:
G.Ambatte
2022-05-03 13:48:19 +12:00
parent 010309b04f
commit f202e45e49

View File

@@ -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>