Skip to content

Commit b74e0de

Browse files
psychedelicioushipsterusername
authored andcommitted
tidy(ui): remove unused state from uiSlice
1 parent e7e7793 commit b74e0de

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

invokeai/frontend/web/src/features/ui/store/uiSlice.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const initialUIState: UIState = {
1010
_version: 1,
1111
activeTab: 'txt2img',
1212
shouldShowImageDetails: false,
13-
shouldHidePreview: false,
1413
shouldShowProgressInViewer: true,
1514
panels: {},
1615
accordions: {},
@@ -27,9 +26,6 @@ export const uiSlice = createSlice({
2726
setShouldShowImageDetails: (state, action: PayloadAction<boolean>) => {
2827
state.shouldShowImageDetails = action.payload;
2928
},
30-
setShouldHidePreview: (state, action: PayloadAction<boolean>) => {
31-
state.shouldHidePreview = action.payload;
32-
},
3329
setShouldShowProgressInViewer: (state, action: PayloadAction<boolean>) => {
3430
state.shouldShowProgressInViewer = action.payload;
3531
},
@@ -43,7 +39,7 @@ export const uiSlice = createSlice({
4339
state,
4440
action: PayloadAction<{ id: string; isOpen: boolean }>
4541
) => {
46-
const { id, isOpen } = action.payload;
42+
const { id, isOpen } = action.payload;
4743
state.accordions[id] = isOpen;
4844
},
4945
expanderStateChanged: (
@@ -64,7 +60,6 @@ export const uiSlice = createSlice({
6460
export const {
6561
setActiveTab,
6662
setShouldShowImageDetails,
67-
setShouldHidePreview,
6863
setShouldShowProgressInViewer,
6964
panelsChanged,
7065
accordionStateChanged,

invokeai/frontend/web/src/features/ui/store/uiTypes.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ export interface UIState {
1313
* Whether or not to show image details, e.g. metadata, workflow, etc.
1414
*/
1515
shouldShowImageDetails: boolean;
16-
/**
17-
* Whether or not to hide the preview.
18-
*/
19-
shouldHidePreview: boolean;
2016
/**
2117
* Whether or not to show progress in the viewer.
2218
*/

0 commit comments

Comments
 (0)