tidy(ui): remove unused state from uiSlice

This commit is contained in:
psychedelicious 2024-01-23 19:31:57 +11:00 committed by Kent Keirsey
parent e7e7793896
commit b74e0de74a
2 changed files with 1 additions and 10 deletions

View File

@ -10,7 +10,6 @@ export const initialUIState: UIState = {
_version: 1, _version: 1,
activeTab: 'txt2img', activeTab: 'txt2img',
shouldShowImageDetails: false, shouldShowImageDetails: false,
shouldHidePreview: false,
shouldShowProgressInViewer: true, shouldShowProgressInViewer: true,
panels: {}, panels: {},
accordions: {}, accordions: {},
@ -27,9 +26,6 @@ export const uiSlice = createSlice({
setShouldShowImageDetails: (state, action: PayloadAction<boolean>) => { setShouldShowImageDetails: (state, action: PayloadAction<boolean>) => {
state.shouldShowImageDetails = action.payload; state.shouldShowImageDetails = action.payload;
}, },
setShouldHidePreview: (state, action: PayloadAction<boolean>) => {
state.shouldHidePreview = action.payload;
},
setShouldShowProgressInViewer: (state, action: PayloadAction<boolean>) => { setShouldShowProgressInViewer: (state, action: PayloadAction<boolean>) => {
state.shouldShowProgressInViewer = action.payload; state.shouldShowProgressInViewer = action.payload;
}, },
@ -43,7 +39,7 @@ export const uiSlice = createSlice({
state, state,
action: PayloadAction<{ id: string; isOpen: boolean }> action: PayloadAction<{ id: string; isOpen: boolean }>
) => { ) => {
const { id, isOpen } = action.payload; const { id, isOpen } = action.payload;
state.accordions[id] = isOpen; state.accordions[id] = isOpen;
}, },
expanderStateChanged: ( expanderStateChanged: (
@ -64,7 +60,6 @@ export const uiSlice = createSlice({
export const { export const {
setActiveTab, setActiveTab,
setShouldShowImageDetails, setShouldShowImageDetails,
setShouldHidePreview,
setShouldShowProgressInViewer, setShouldShowProgressInViewer,
panelsChanged, panelsChanged,
accordionStateChanged, accordionStateChanged,

View File

@ -13,10 +13,6 @@ export interface UIState {
* Whether or not to show image details, e.g. metadata, workflow, etc. * Whether or not to show image details, e.g. metadata, workflow, etc.
*/ */
shouldShowImageDetails: boolean; shouldShowImageDetails: boolean;
/**
* Whether or not to hide the preview.
*/
shouldHidePreview: boolean;
/** /**
* Whether or not to show progress in the viewer. * Whether or not to show progress in the viewer.
*/ */