diff --git a/lab3/DO_NOT_README.md b/lab3/DO_NOT_README.md index ac223ff..450cf80 100644 --- a/lab3/DO_NOT_README.md +++ b/lab3/DO_NOT_README.md @@ -18,7 +18,7 @@ I `userActions.js`: ```javascript .then((users) => { - useDispatch({ + dispatch({ type: USERS_RECEIVED, payload: users }) diff --git a/lab3/src/components/List/List.js b/lab3/src/components/List/List.js index 48a6b00..1947438 100644 --- a/lab3/src/components/List/List.js +++ b/lab3/src/components/List/List.js @@ -6,7 +6,7 @@ import "./List.css"; const List = ({ title }) => { const [searchTerm, setSearchTerm] = useState(""); - // Task 7: Get users from store + // Task 6: Get users from store const users = []; const onItemClick = (userId) => { @@ -32,16 +32,15 @@ const List = ({ title }) => {
Empty list...
) : ( )}