diff --git a/package-lock.json b/package-lock.json index fe9c1c1..85d0692 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12528,6 +12528,11 @@ "symbol-observable": "^1.2.0" } }, + "redux-devtools-extension": { + "version": "2.13.9", + "resolved": "https://registry.npmjs.org/redux-devtools-extension/-/redux-devtools-extension-2.13.9.tgz", + "integrity": "sha512-cNJ8Q/EtjhQaZ71c8I9+BPySIBVEKssbPpskBfsXqb8HJ002A3KRVHfeRzwRo6mGPqsm7XuHTqNSNeS1Khig0A==" + }, "redux-thunk": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.3.0.tgz", diff --git a/package.json b/package.json index cb169b9..db34837 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "react-redux": "^7.2.2", "react-scripts": "4.0.1", "redux": "^4.0.5", + "redux-devtools-extension": "^2.13.9", "redux-thunk": "^2.3.0", "typescript": "^4.1.3", "web-vitals": "^0.2.4" diff --git a/src/components/TodoList.tsx b/src/components/TodoList.tsx index e95e088..9cf4db3 100644 --- a/src/components/TodoList.tsx +++ b/src/components/TodoList.tsx @@ -1,10 +1,11 @@ -import React, {useEffect} from 'react'; -import {useTypedSelector} from "../hooks/useTypedSelector"; -import {useActions} from "../hooks/useActions"; +import { useEffect, FC } from 'react'; +import { useTypedSelector } from "../hooks/useTypedSelector"; +import { useActions } from "../hooks/useActions"; +import { TodoModel } from '../types/todo'; -const TodoList: React.FC = () => { - const {page, error, loading, todos, limit} = useTypedSelector(state => state.todo) - const {fetchTodos, setTodoPage} = useActions() +const TodoList: FC = () => { + const { page, error, loading, todos, limit } = useTypedSelector(state => state.todo) + const { fetchTodos, setTodoPage } = useActions() const pages = [1, 2, 3, 4, 5] useEffect(() => { @@ -20,14 +21,14 @@ const TodoList: React.FC = () => { return (