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

View File

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

View File

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