@@ -3,10 +3,24 @@ 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 { creativityChanged , selectCreativity , selectStructure , selectUpscaleInitialImage , structureChanged , upscaleInitialImageChanged } from 'features/parameters/store/upscaleSlice' ;
6
+ import {
7
+ creativityChanged ,
8
+ selectCreativity ,
9
+ selectStructure ,
10
+ selectUpscaleInitialImage ,
11
+ structureChanged ,
12
+ upscaleInitialImageChanged ,
13
+ } from 'features/parameters/store/upscaleSlice' ;
7
14
import { memo , useCallback , useMemo } from 'react' ;
8
15
import { useTranslation } from 'react-i18next' ;
9
- import { PiImageBold , PiPaletteBold , PiScalesBold , PiShieldCheckBold , PiSparkleBold , PiUploadBold } from 'react-icons/pi' ;
16
+ import {
17
+ PiImageBold ,
18
+ PiPaletteBold ,
19
+ PiScalesBold ,
20
+ PiShieldCheckBold ,
21
+ PiSparkleBold ,
22
+ PiUploadBold ,
23
+ } from 'react-icons/pi' ;
10
24
import type { ImageDTO } from 'services/api/types' ;
11
25
12
26
import { LaunchpadButton } from './LaunchpadButton' ;
@@ -108,40 +122,40 @@ export const UpscalingLaunchpadPanel = memo(() => {
108
122
Creativity & Structural Defaults
109
123
</ Text >
110
124
< Flex flexDir = "column" gap = { 2 } >
111
- < Button
112
- size = "sm"
113
- variant = { creativity === - 5 && structure === 5 ? " solid" : " outline" }
114
- colorScheme = "base"
125
+ < Button
126
+ size = "sm"
127
+ variant = { creativity === - 5 && structure === 5 ? ' solid' : ' outline' }
128
+ colorScheme = "base"
115
129
justifyContent = "center"
116
130
onClick = { onConservativeClick }
117
131
leftIcon = { < PiShieldCheckBold /> }
118
132
>
119
133
Conservative
120
134
</ Button >
121
- < Button
122
- size = "sm"
123
- variant = { creativity === 0 && structure === 0 ? " solid" : " outline" }
124
- colorScheme = "base"
135
+ < Button
136
+ size = "sm"
137
+ variant = { creativity === 0 && structure === 0 ? ' solid' : ' outline' }
138
+ colorScheme = "base"
125
139
justifyContent = "center"
126
140
onClick = { onBalancedClick }
127
141
leftIcon = { < PiScalesBold /> }
128
142
>
129
143
Balanced
130
144
</ Button >
131
- < Button
132
- size = "sm"
133
- variant = { creativity === 5 && structure === - 2 ? " solid" : " outline" }
134
- colorScheme = "base"
145
+ < Button
146
+ size = "sm"
147
+ variant = { creativity === 5 && structure === - 2 ? ' solid' : ' outline' }
148
+ colorScheme = "base"
135
149
justifyContent = "center"
136
150
onClick = { onCreativeClick }
137
151
leftIcon = { < PiPaletteBold /> }
138
152
>
139
153
Creative
140
154
</ Button >
141
- < Button
142
- size = "sm"
143
- variant = { creativity === 8 && structure === - 5 ? " solid" : " outline" }
144
- colorScheme = "base"
155
+ < Button
156
+ size = "sm"
157
+ variant = { creativity === 8 && structure === - 5 ? ' solid' : ' outline' }
158
+ colorScheme = "base"
145
159
justifyContent = "center"
146
160
onClick = { onArtisticClick }
147
161
leftIcon = { < PiSparkleBold /> }
0 commit comments