Removes unused isReady state

This commit is contained in:
psychedelicious 2022-11-02 11:17:16 +11:00 committed by Lincoln Stein
parent 8d171bb044
commit 07ae626b22
3 changed files with 1 additions and 15 deletions

View File

@ -78,8 +78,6 @@ const appSelector = createSelector(
const App = () => {
const dispatch = useAppDispatch();
// const [isReady, setIsReady] = useState<boolean>(false);
// const { isReady, reasonsWhyNotReady } = useAppSelector(readinessSelector);
const { shouldShowGalleryButton, shouldShowOptionsPanelButton } =
useAppSelector(appSelector);
@ -87,10 +85,6 @@ const App = () => {
dispatch(requestSystemConfig());
}, [dispatch]);
// useEffect(() => {
// dispatch(readinessChanged({ isReady, reasonsWhyNotReady }));
// }, [dispatch, isReady, reasonsWhyNotReady]);
return (
<div className="App">
<ImageUploader>

View File

@ -41,8 +41,6 @@ export interface SystemState
shouldDisplayGuides: boolean;
wasErrorSeen: boolean;
isCancelable: boolean;
isReady: boolean;
reasonsWhyNotReady: string[];
}
const initialSystemState = {
@ -187,11 +185,6 @@ export const systemSlice = createSlice({
state.isProcessing = true;
state.currentStatusHasSteps = false;
},
readinessChanged: (state, action: PayloadAction<ReadinessPayload>) => {
const { isReady, reasonsWhyNotReady } = action.payload;
state.isReady = isReady;
state.reasonsWhyNotReady = reasonsWhyNotReady;
},
},
});
@ -214,7 +207,6 @@ export const {
setModelList,
setIsCancelable,
modelChangeRequested,
readinessChanged,
} = systemSlice.actions;
export default systemSlice.reducer;

View File

@ -86,7 +86,7 @@ const initialInpaintingState: InpaintingState = {
isMovingBoundingBox: false,
stageScale: 1,
shouldUseInpaintReplace: false,
inpaintReplace: 1,
inpaintReplace: 0.1,
shouldLockBoundingBox: true,
isSpacebarHeld: false,
};