File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ const ToggleModeButton = ({
8
8
onClick, editorType
9
9
} ) => (
10
10
< div styleName = 'control-toggleModeButton' >
11
- < div styleName = { editorType === 'SPLIT' ? 'active' : 'non-active' } onClick = { ( ) => onClick ( 'SPLIT' ) } >
12
- < img styleName = 'item-star' src = { editorType === 'EDITOR_PREVIEW' ? '../resources/icon/icon-mode-markdown-off-active.svg' : '' } />
11
+ < div styleName = { editorType === 'SPLIT' ? 'active' : undefined } onClick = { ( ) => onClick ( 'SPLIT' ) } >
12
+ < img src = { editorType === 'EDITOR_PREVIEW' ? '../resources/icon/icon-mode-markdown-off-active.svg' : '' } />
13
13
</ div >
14
- < div styleName = { editorType === 'EDITOR_PREVIEW' ? 'active' : 'non-active' } onClick = { ( ) => onClick ( 'EDITOR_PREVIEW' ) } >
15
- < img styleName = 'item-star' src = { editorType === 'EDITOR_PREVIEW' ? '' : '../resources/icon/icon-mode-split-on-active.svg' } />
14
+ < div styleName = { editorType === 'EDITOR_PREVIEW' ? 'active' : undefined } onClick = { ( ) => onClick ( 'EDITOR_PREVIEW' ) } >
15
+ < img src = { editorType === 'EDITOR_PREVIEW' ? '' : '../resources/icon/icon-mode-split-on-active.svg' } />
16
16
</ div >
17
17
< span lang = { i18n . locale } styleName = 'tooltip' > { i18n . __ ( 'Toggle Mode' ) } </ span >
18
18
</ div >
19
19
)
20
20
21
21
ToggleModeButton . propTypes = {
22
22
onClick : PropTypes . func . isRequired ,
23
- editorType : PropTypes . string . Required
23
+ editorType : PropTypes . string
24
24
}
25
25
26
26
export default CSSModules ( ToggleModeButton , styles )
You can’t perform that action at this time.
0 commit comments