@@ -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' ;
@@ -376,17 +375,17 @@ export const GistActionButton = observer(
376
375
377
376
const menu = (
378
377
< Menu >
379
- < MenuItem
378
+ < MenuItem2
380
379
text = "Publish"
381
380
active = { actionType === GistActionType . publish }
382
381
onClick = { ( ) => this . setActionType ( GistActionType . publish ) }
383
382
/>
384
- < MenuItem
383
+ < MenuItem2
385
384
text = "Update"
386
385
active = { actionType === GistActionType . update }
387
386
onClick = { ( ) => this . setActionType ( GistActionType . update ) }
388
387
/>
389
- < MenuItem
388
+ < MenuItem2
390
389
text = "Delete"
391
390
active = { actionType === GistActionType . delete }
392
391
onClick = { ( ) => this . setActionType ( GistActionType . delete ) }
@@ -395,9 +394,9 @@ export const GistActionButton = observer(
395
394
) ;
396
395
397
396
return (
398
- < Popover content = { menu } position = { Position . BOTTOM } >
397
+ < Popover2 content = { menu } placement = { Position . BOTTOM } >
399
398
< Button icon = "wrench" />
400
- </ Popover >
399
+ </ Popover2 >
401
400
) ;
402
401
} ;
403
402
@@ -412,13 +411,13 @@ export const GistActionButton = observer(
412
411
const privacyIcon = gitHubPublishAsPublic ? 'unlock' : 'lock' ;
413
412
const privacyMenu = (
414
413
< Menu >
415
- < MenuItem
414
+ < MenuItem2
416
415
text = "Private"
417
416
icon = "lock"
418
417
active = { ! gitHubPublishAsPublic }
419
418
onClick = { this . setPrivate }
420
419
/>
421
- < MenuItem
420
+ < MenuItem2
422
421
text = "Public"
423
422
icon = "unlock"
424
423
active = { gitHubPublishAsPublic }
@@ -428,9 +427,9 @@ export const GistActionButton = observer(
428
427
) ;
429
428
430
429
return (
431
- < Popover content = { privacyMenu } position = { Position . BOTTOM } >
430
+ < Popover2 content = { privacyMenu } placement = { Position . BOTTOM } >
432
431
< Button icon = { privacyIcon } />
433
- </ Popover >
432
+ </ Popover2 >
434
433
) ;
435
434
} ;
436
435
0 commit comments