@@ -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' ; 
@@ -376,17 +375,17 @@ export const GistActionButton = observer(
376375
377376      const  menu  =  ( 
378377        < Menu > 
379-           < MenuItem 
378+           < MenuItem2 
380379            text = "Publish" 
381380            active = { actionType  ===  GistActionType . publish } 
382381            onClick = { ( )  =>  this . setActionType ( GistActionType . publish ) } 
383382          /> 
384-           < MenuItem 
383+           < MenuItem2 
385384            text = "Update" 
386385            active = { actionType  ===  GistActionType . update } 
387386            onClick = { ( )  =>  this . setActionType ( GistActionType . update ) } 
388387          /> 
389-           < MenuItem 
388+           < MenuItem2 
390389            text = "Delete" 
391390            active = { actionType  ===  GistActionType . delete } 
392391            onClick = { ( )  =>  this . setActionType ( GistActionType . delete ) } 
@@ -395,9 +394,9 @@ export const GistActionButton = observer(
395394      ) ; 
396395
397396      return  ( 
398-         < Popover  content = { menu }  position = { Position . BOTTOM } > 
397+         < Popover2  content = { menu }  placement = { Position . BOTTOM } > 
399398          < Button  icon = "wrench"  /> 
400-         </ Popover > 
399+         </ Popover2 > 
401400      ) ; 
402401    } ; 
403402
@@ -412,13 +411,13 @@ export const GistActionButton = observer(
412411      const  privacyIcon  =  gitHubPublishAsPublic  ? 'unlock'  : 'lock' ; 
413412      const  privacyMenu  =  ( 
414413        < Menu > 
415-           < MenuItem 
414+           < MenuItem2 
416415            text = "Private" 
417416            icon = "lock" 
418417            active = { ! gitHubPublishAsPublic } 
419418            onClick = { this . setPrivate } 
420419          /> 
421-           < MenuItem 
420+           < MenuItem2 
422421            text = "Public" 
423422            icon = "unlock" 
424423            active = { gitHubPublishAsPublic } 
@@ -428,9 +427,9 @@ export const GistActionButton = observer(
428427      ) ; 
429428
430429      return  ( 
431-         < Popover  content = { privacyMenu }  position = { Position . BOTTOM } > 
430+         < Popover2  content = { privacyMenu }  placement = { Position . BOTTOM } > 
432431          < Button  icon = { privacyIcon }  /> 
433-         </ Popover > 
432+         </ Popover2 > 
434433      ) ; 
435434    } ; 
436435
0 commit comments