@@ -5,11 +5,10 @@ import {
55 ButtonGroup ,
66 IToastProps ,
77 Menu ,
8- MenuItem ,
9- Popover ,
108 Position ,
119 Toaster ,
1210} from '@blueprintjs/core' ;
11+ import { MenuItem2 , Popover2 } from '@blueprintjs/popover2' ;
1312import { clipboard } from 'electron' ;
1413import { when } from 'mobx' ;
1514import { observer } from 'mobx-react' ;
@@ -395,17 +394,17 @@ export const GistActionButton = observer(
395394
396395 const menu = (
397396 < Menu >
398- < MenuItem
397+ < MenuItem2
399398 text = "Publish"
400399 active = { actionType === GistActionType . publish }
401400 onClick = { ( ) => this . setActionType ( GistActionType . publish ) }
402401 />
403- < MenuItem
402+ < MenuItem2
404403 text = "Update"
405404 active = { actionType === GistActionType . update }
406405 onClick = { ( ) => this . setActionType ( GistActionType . update ) }
407406 />
408- < MenuItem
407+ < MenuItem2
409408 text = "Delete"
410409 active = { actionType === GistActionType . delete }
411410 onClick = { ( ) => this . setActionType ( GistActionType . delete ) }
@@ -414,9 +413,9 @@ export const GistActionButton = observer(
414413 ) ;
415414
416415 return (
417- < Popover content = { menu } position = { Position . BOTTOM } >
416+ < Popover2 content = { menu } placement = { Position . BOTTOM } >
418417 < Button icon = "wrench" />
419- </ Popover >
418+ </ Popover2 >
420419 ) ;
421420 } ;
422421
@@ -431,13 +430,13 @@ export const GistActionButton = observer(
431430 const privacyIcon = gitHubPublishAsPublic ? 'unlock' : 'lock' ;
432431 const privacyMenu = (
433432 < Menu >
434- < MenuItem
433+ < MenuItem2
435434 text = "Private"
436435 icon = "lock"
437436 active = { ! gitHubPublishAsPublic }
438437 onClick = { this . setPrivate }
439438 />
440- < MenuItem
439+ < MenuItem2
441440 text = "Public"
442441 icon = "unlock"
443442 active = { gitHubPublishAsPublic }
@@ -447,9 +446,9 @@ export const GistActionButton = observer(
447446 ) ;
448447
449448 return (
450- < Popover content = { privacyMenu } position = { Position . BOTTOM } >
449+ < Popover2 content = { privacyMenu } placement = { Position . BOTTOM } >
451450 < Button icon = { privacyIcon } />
452- </ Popover >
451+ </ Popover2 >
453452 ) ;
454453 } ;
455454
0 commit comments