Fix function name typo selectWIndowArgs

This commit is contained in:
sallbet 2023-03-13 03:43:37 +03:00
parent 70a5a98b65
commit d1635ae757
Signed by: sallbet
GPG Key ID: 3C8A1BC17088B308
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
import React, { useMemo } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { selectWindowType, selectWIndowArgs } from '../store/selectors/popup';
import { selectWindowType, selectWindowArgs } from '../store/selectors/popup';
import {
setWindowArgs,
setWindowTitle,
@ -16,7 +16,7 @@ import COMPONENTS from './windows';
const UIPopUp = () => {
const windowType = useSelector(selectWindowType);
const args = useSelector(selectWIndowArgs);
const args = useSelector(selectWindowArgs);
const [Content] = COMPONENTS[windowType];
@ -27,7 +27,7 @@ const UIPopUp = () => {
setArgs: (newArgs) => dispatch(setWindowArgs(newArgs)),
setTitle: (title) => dispatch(setWindowTitle(title)),
// eslint-disable-next-line max-len
changeType: (newType, newTitel, newArgs) => dispatch(changeWindowType(newType, newTitel, newArgs)),
changeType: (newType, newTitle, newArgs) => dispatch(changeWindowType(newType, newTitle, newArgs)),
}), [args]);
return (

View File

@ -4,4 +4,4 @@
export const selectWindowType = (state) => state.popup.windowType;
export const selectWIndowArgs = (state) => state.popup.args;
export const selectWindowArgs = (state) => state.popup.args;