1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

apply switching style

This commit is contained in:
Sosuke Suzuki
2017-12-17 02:07:07 +09:00
parent 8ba0d10f40
commit 977e80c829

View File

@@ -274,7 +274,7 @@ class MarkdownNoteDetail extends React.Component {
render () {
const { data, config, location } = this.props
const { note } = this.state
const { note, editorType } = this.state
const storageKey = note.storage
const folderKey = note.folder
@@ -330,10 +330,10 @@ class MarkdownNoteDetail extends React.Component {
/>
<div styleName='mode-tab'>
<div styleName='active' onClick={() => this.handleSwitchMode('SPLIT')}>
<div styleName={editorType === 'SPLIT' ? 'active' : 'non-active'} onClick={() => this.handleSwitchMode('SPLIT')}>
<img styleName='item-star' src='../resources/icon/icon-WYSIWYG-on.svg' />
</div>
<div onClick={() => this.handleSwitchMode('DEFAULT')}>
<div styleName={editorType === 'DEFAULT' ? 'active' : 'non-active'} onClick={() => this.handleSwitchMode('DEFAULT')}>
<img styleName='item-star' src='../resources/icon/icon-code-off.svg' />
</div>
</div>