File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
invokeai/frontend/web/src/common/components Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { MenuItem } from '@invoke-ai/ui-library' ;
2
2
import { useAppDispatch } from 'app/store/storeHooks' ;
3
- import {
4
- useNewCanvasSession ,
5
- useNewGallerySession ,
6
- } from 'features/controlLayers/components/NewSessionConfirmationAlertDialog' ;
3
+ import { useNewCanvasSession } from 'features/controlLayers/components/NewSessionConfirmationAlertDialog' ;
7
4
import { allEntitiesDeleted } from 'features/controlLayers/store/canvasSlice' ;
8
5
import { paramsReset } from 'features/controlLayers/store/paramsSlice' ;
9
6
import { memo , useCallback } from 'react' ;
@@ -13,7 +10,6 @@ import { PiArrowsCounterClockwiseBold, PiFilePlusBold } from 'react-icons/pi';
13
10
export const SessionMenuItems = memo ( ( ) => {
14
11
const { t } = useTranslation ( ) ;
15
12
const dispatch = useAppDispatch ( ) ;
16
- const { newGallerySessionWithDialog } = useNewGallerySession ( ) ;
17
13
const { newCanvasSessionWithDialog } = useNewCanvasSession ( ) ;
18
14
const resetCanvasLayers = useCallback ( ( ) => {
19
15
dispatch ( allEntitiesDeleted ( ) ) ;
@@ -23,9 +19,6 @@ export const SessionMenuItems = memo(() => {
23
19
} , [ dispatch ] ) ;
24
20
return (
25
21
< >
26
- < MenuItem icon = { < PiFilePlusBold /> } onClick = { newGallerySessionWithDialog } >
27
- { t ( 'controlLayers.newGallerySession' ) }
28
- </ MenuItem >
29
22
< MenuItem icon = { < PiFilePlusBold /> } onClick = { newCanvasSessionWithDialog } >
30
23
{ t ( 'controlLayers.newCanvasSession' ) }
31
24
</ MenuItem >
You can’t perform that action at this time.
0 commit comments