Skip to content

Commit

Permalink
Merge pull request #2770 from vienai8d/update_snippet_note
Browse files Browse the repository at this point in the history
Replace current fullscreen button of SnippetNote to FullscreenButton module
  • Loading branch information
Rokt33r committed Jan 7, 2019
2 parents 5a8f076 + 2bbe391 commit 5a5563f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions browser/main/Detail/SnippetNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import _ from 'lodash'
import {findNoteTitle} from 'browser/lib/findNoteTitle'
import convertModeName from 'browser/lib/convertModeName'
import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig'
import FullscreenButton from './FullscreenButton'
import TrashButton from './TrashButton'
import RestoreButton from './RestoreButton'
import PermanentDeleteButton from './PermanentDeleteButton'
Expand Down Expand Up @@ -799,11 +800,7 @@ class SnippetNoteDetail extends React.Component {
isActive={note.isStarred}
/>

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

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

Expand Down

0 comments on commit 5a5563f

Please sign in to comment.