diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 31e7fd158..4bbcc5aae 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -1,13 +1,13 @@ import React from 'react'; import { Todo } from '../../types/Todo'; import { Error } from '../../types/Error'; -import cn from 'classnames'; +import classNames from 'classnames'; import { USER_ID, addTodo, updateTodo } from '../../api/todos'; type Props = { todos: Todo[]; - completedTodos: Todo[]; setTodos: React.Dispatch>; + completedTodos: Todo[]; textField: React.RefObject; setErrorMessage: React.Dispatch>; query: string; @@ -105,11 +105,11 @@ export const Header: React.FC = ({ }; return ( -
+
{todos.length > 0 && (