Fix typo in selectWIndowPosById and typo in newTitel

This commit is contained in:
sallbet 2023-03-13 03:45:56 +03:00
parent d1635ae757
commit 091dfe9c84
Signed by: sallbet
GPG Key ID: 3C8A1BC17088B308

View File

@ -40,10 +40,10 @@ const Window = ({ id }) => {
const resizeRef = useRef();
const selectWindowById = useMemo(() => makeSelectWindowById(id), []);
const selectWIndowPosById = useMemo(() => makeSelectWindowPosById(id), []);
const selectWindowPosById = useMemo(() => makeSelectWindowPosById(id), []);
const selectWindowArgs = useMemo(() => makeSelectWindowArgs(id), []);
const win = useSelector(selectWindowById);
const position = useSelector(selectWIndowPosById);
const position = useSelector(selectWindowPosById);
const showWindows = useSelector(selectShowWindows);
const args = useSelector(selectWindowArgs);
@ -54,7 +54,7 @@ const Window = ({ id }) => {
setArgs: (newArgs) => dispatch(setWindowArgs(id, newArgs)),
setTitle: (title) => dispatch(setWindowTitle(id, title)),
// eslint-disable-next-line max-len
changeType: (newType, newTitel, newArgs) => dispatch(changeWindowType(id, newType, newTitel, newArgs)),
changeType: (newType, newTitle, newArgs) => dispatch(changeWindowType(id, newType, newTitle, newArgs)),
}), [id, args]);
const {