mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
rename setter
This commit is contained in:
parent
f43aed677e
commit
da44bb1707
@ -10,7 +10,7 @@ import IAIPopover from 'common/components/IAIPopover';
|
||||
import { setInitialCanvasImage } from 'features/canvas/store/canvasSlice';
|
||||
import {
|
||||
GalleryState,
|
||||
setHiddenState,
|
||||
setShouldHidePreview,
|
||||
} from 'features/gallery/store/gallerySlice';
|
||||
import { lightboxSelector } from 'features/lightbox/store/lightboxSelectors';
|
||||
import { setIsLightboxOpen } from 'features/lightbox/store/lightboxSlice';
|
||||
@ -195,8 +195,8 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
||||
[currentImage]
|
||||
);
|
||||
|
||||
const handleHiddenChange = () => {
|
||||
dispatch(setHiddenState(!shouldHidePreview));
|
||||
const handlePreviewVisibility = () => {
|
||||
dispatch(setShouldHidePreview(!shouldHidePreview));
|
||||
};
|
||||
|
||||
const handleClickUseAllParameters = () => {
|
||||
@ -479,7 +479,7 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
||||
: t('parameters.showPreview')
|
||||
}
|
||||
isChecked={shouldHidePreview}
|
||||
onClick={handleHiddenChange}
|
||||
onClick={handlePreviewVisibility}
|
||||
/>
|
||||
<IAIIconButton
|
||||
icon={<FaExpand />}
|
||||
|
@ -253,7 +253,7 @@ export const gallerySlice = createSlice({
|
||||
) => {
|
||||
state.shouldUseSingleGalleryColumn = action.payload;
|
||||
},
|
||||
setHiddenState: (state, action: PayloadAction<boolean>) => {
|
||||
setShouldHidePreview: (state, action: PayloadAction<boolean>) => {
|
||||
state.shouldHidePreview = action.payload;
|
||||
},
|
||||
},
|
||||
@ -261,7 +261,7 @@ export const gallerySlice = createSlice({
|
||||
|
||||
export const {
|
||||
addImage,
|
||||
setHiddenState,
|
||||
setShouldHidePreview,
|
||||
clearIntermediateImage,
|
||||
removeImage,
|
||||
setCurrentImage,
|
||||
|
Loading…
Reference in New Issue
Block a user