@@ -3,12 +3,10 @@ import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
3
3
import { useImageUploadButton } from 'common/hooks/useImageUploadButton' ;
4
4
import { setUpscaleInitialImageDndTarget } from 'features/dnd/dnd' ;
5
5
import { DndDropTarget } from 'features/dnd/DndDropTarget' ;
6
- import { DndImage } from 'features/dnd/DndImage' ;
7
- import { DndImageIcon } from 'features/dnd/DndImageIcon' ;
8
- import { selectUpscaleInitialImage , upscaleInitialImageChanged , creativityChanged , structureChanged , selectCreativity , selectStructure } from 'features/parameters/store/upscaleSlice' ;
6
+ import { creativityChanged , selectCreativity , selectStructure , selectUpscaleInitialImage , structureChanged , upscaleInitialImageChanged } from 'features/parameters/store/upscaleSlice' ;
9
7
import { memo , useCallback , useMemo } from 'react' ;
10
8
import { useTranslation } from 'react-i18next' ;
11
- import { PiArrowCounterClockwiseBold , PiImageBold , PiUploadBold , PiShieldCheckBold , PiScalesBold , PiPaletteBold , PiSparkleBold } from 'react-icons/pi' ;
9
+ import { PiImageBold , PiPaletteBold , PiScalesBold , PiShieldCheckBold , PiSparkleBold , PiUploadBold } from 'react-icons/pi' ;
12
10
import type { ImageDTO } from 'services/api/types' ;
13
11
14
12
import { LaunchpadButton } from './LaunchpadButton' ;
@@ -29,10 +27,6 @@ export const UpscalingLaunchpadPanel = memo(() => {
29
27
[ dispatch ]
30
28
) ;
31
29
32
- const onReset = useCallback ( ( ) => {
33
- dispatch ( upscaleInitialImageChanged ( null ) ) ;
34
- } , [ dispatch ] ) ;
35
-
36
30
const uploadApi = useImageUploadButton ( { allowMultiple : false , onUpload } ) ;
37
31
38
32
// Preset button handlers
0 commit comments