Skip to content

Commit

Permalink
Use appDispatch instead (#2114)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivaj05 committed Jun 10, 2022
1 parent 0b5e3d5 commit 296f58f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions portal-ui/src/screens/Console/Users/UserSelector.tsx
Expand Up @@ -17,15 +17,15 @@
import React, { Fragment } from "react";
import InputBoxWrapper from "../Common/FormComponents/InputBoxWrapper/InputBoxWrapper";
import { setUserName } from "./AddUsersSlice";
import { useDispatch, useSelector } from "react-redux";
import {AppState} from "../../../store";
import { useSelector } from "react-redux";
import {AppState, useAppDispatch} from "../../../store";

interface IAddUserProps2 {
classes: any;
}

const UserSelector = ({ classes }: IAddUserProps2 ) => {
const dispatch = useDispatch();
const dispatch = useAppDispatch();
const userName = useSelector(
(state: AppState) => state.createUser.userName
)
Expand Down

0 comments on commit 296f58f

Please sign in to comment.