Skip to content

Commit 5a5563f

Browse files
authored
Merge pull request #2770 from vienai8d/update_snippet_note
Replace current fullscreen button of SnippetNote to FullscreenButton module
2 parents 5a8f076 + 2bbe391 commit 5a5563f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

browser/main/Detail/SnippetNoteDetail.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import _ from 'lodash'
2020
import {findNoteTitle} from 'browser/lib/findNoteTitle'
2121
import convertModeName from 'browser/lib/convertModeName'
2222
import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig'
23+
import FullscreenButton from './FullscreenButton'
2324
import TrashButton from './TrashButton'
2425
import RestoreButton from './RestoreButton'
2526
import PermanentDeleteButton from './PermanentDeleteButton'
@@ -799,11 +800,7 @@ class SnippetNoteDetail extends React.Component {
799800
isActive={note.isStarred}
800801
/>
801802

802-
<button styleName='control-fullScreenButton' title={i18n.__('Fullscreen')}
803-
onMouseDown={(e) => this.handleFullScreenButton(e)}>
804-
<img styleName='iconInfo' src='../resources/icon/icon-full.svg' />
805-
<span styleName='tooltip'>{i18n.__('Fullscreen')}</span>
806-
</button>
803+
<FullscreenButton onClick={(e) => this.handleFullScreenButton(e)} />
807804

808805
<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />
809806

0 commit comments

Comments
 (0)