diff --git a/src/App.tsx b/src/App.tsx index 9dc0a3d35..192eb3d77 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,7 +8,6 @@ import { Todo } from './types/Todo'; import * as todoService from './api/todos'; import { FilterOptions } from './types/FilterOptions'; import { Todolist } from './components/TodoList'; -import { TodoItem } from './components/TodoItem'; import classNames from 'classnames'; export const App: React.FC = () => { @@ -225,18 +224,9 @@ export const App: React.FC = () => { filteredTodos={filteredTodos} setErrorMessage={setErrorMessage} loadingIds={loadingIds} + tempTodo={tempTodo} /> - {tempTodo && ( - - )} + {todos.length !== 0 && (