@@ -5,11 +5,10 @@ import {
5
5
ButtonGroup ,
6
6
IToastProps ,
7
7
Menu ,
8
- MenuItem ,
9
- Popover ,
10
8
Position ,
11
9
Toaster ,
12
10
} from '@blueprintjs/core' ;
11
+ import { MenuItem2 , Popover2 } from '@blueprintjs/popover2' ;
13
12
import { clipboard } from 'electron' ;
14
13
import { when } from 'mobx' ;
15
14
import { observer } from 'mobx-react' ;
@@ -395,17 +394,17 @@ export const GistActionButton = observer(
395
394
396
395
const menu = (
397
396
< Menu >
398
- < MenuItem
397
+ < MenuItem2
399
398
text = "Publish"
400
399
active = { actionType === GistActionType . publish }
401
400
onClick = { ( ) => this . setActionType ( GistActionType . publish ) }
402
401
/>
403
- < MenuItem
402
+ < MenuItem2
404
403
text = "Update"
405
404
active = { actionType === GistActionType . update }
406
405
onClick = { ( ) => this . setActionType ( GistActionType . update ) }
407
406
/>
408
- < MenuItem
407
+ < MenuItem2
409
408
text = "Delete"
410
409
active = { actionType === GistActionType . delete }
411
410
onClick = { ( ) => this . setActionType ( GistActionType . delete ) }
@@ -414,9 +413,9 @@ export const GistActionButton = observer(
414
413
) ;
415
414
416
415
return (
417
- < Popover content = { menu } position = { Position . BOTTOM } >
416
+ < Popover2 content = { menu } placement = { Position . BOTTOM } >
418
417
< Button icon = "wrench" />
419
- </ Popover >
418
+ </ Popover2 >
420
419
) ;
421
420
} ;
422
421
@@ -431,13 +430,13 @@ export const GistActionButton = observer(
431
430
const privacyIcon = gitHubPublishAsPublic ? 'unlock' : 'lock' ;
432
431
const privacyMenu = (
433
432
< Menu >
434
- < MenuItem
433
+ < MenuItem2
435
434
text = "Private"
436
435
icon = "lock"
437
436
active = { ! gitHubPublishAsPublic }
438
437
onClick = { this . setPrivate }
439
438
/>
440
- < MenuItem
439
+ < MenuItem2
441
440
text = "Public"
442
441
icon = "unlock"
443
442
active = { gitHubPublishAsPublic }
@@ -447,9 +446,9 @@ export const GistActionButton = observer(
447
446
) ;
448
447
449
448
return (
450
- < Popover content = { privacyMenu } position = { Position . BOTTOM } >
449
+ < Popover2 content = { privacyMenu } placement = { Position . BOTTOM } >
451
450
< Button icon = { privacyIcon } />
452
- </ Popover >
451
+ </ Popover2 >
453
452
) ;
454
453
} ;
455
454
0 commit comments