tidy(ui): remove unused state from uiSlice

This commit is contained in:
psychedelicious 2024-01-23 19:26:05 +11:00 committed by Kent Keirsey
parent b76d2cd716
commit 504bdac14a
2 changed files with 0 additions and 9 deletions

View File

@ -10,7 +10,6 @@ export const initialUIState: UIState = {
_version: 1,
activeTab: 'txt2img',
shouldShowImageDetails: false,
shouldShowExistingModelsInSearch: false,
shouldHidePreview: false,
shouldShowProgressInViewer: true,
panels: {},
@ -29,12 +28,6 @@ export const uiSlice = createSlice({
setShouldHidePreview: (state, action: PayloadAction<boolean>) => {
state.shouldHidePreview = action.payload;
},
setShouldShowExistingModelsInSearch: (
state,
action: PayloadAction<boolean>
) => {
state.shouldShowExistingModelsInSearch = action.payload;
},
setShouldShowProgressInViewer: (state, action: PayloadAction<boolean>) => {
state.shouldShowProgressInViewer = action.payload;
},
@ -55,7 +48,6 @@ export const uiSlice = createSlice({
export const {
setActiveTab,
setShouldShowImageDetails,
setShouldShowExistingModelsInSearch,
setShouldHidePreview,
setShouldShowProgressInViewer,
panelsChanged,

View File

@ -4,7 +4,6 @@ export interface UIState {
_version: 1;
activeTab: InvokeTabName;
shouldShowImageDetails: boolean;
shouldShowExistingModelsInSearch: boolean;
shouldHidePreview: boolean;
shouldShowProgressInViewer: boolean;
panels: Record<string, string>;