Skip to content

Commit 2bbe391

Browse files
committed
use FullscreenButton instead of current button
1 parent 05da826 commit 2bbe391

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'
@@ -796,11 +797,7 @@ class SnippetNoteDetail extends React.Component {
796797
isActive={note.isStarred}
797798
/>
798799

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

805802
<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />
806803

0 commit comments

Comments
 (0)