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

View File

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