Skip to content

Commit

Permalink
update_footer
Browse files Browse the repository at this point in the history
  • Loading branch information
inesshtepa committed Dec 12, 2024
1 parent 809c804 commit ce979e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ export const App: React.FC = () => {
</header>

<Todolist
todos={filteredTodos}
onToggleTodo={toggleTodoCompletion}
onDelete={handleDelete}
onUpdate={handleUpdateTodo}
Expand Down
4 changes: 1 addition & 3 deletions src/components/TodoList/TodoList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Todo } from '../../types/Todo';
import { TodoItem } from '../TodoItem';

type Props = {
todos: Todo[];
onToggleTodo: (id: number) => void;
onDelete: (todoId: number) => void;
onUpdate: (todo: Todo) => Promise<void>;
Expand All @@ -17,7 +16,6 @@ type Props = {
};

export const Todolist: React.FC<Props> = ({
todos,
onDelete,
onUpdate,
deletingId,
Expand All @@ -28,7 +26,7 @@ export const Todolist: React.FC<Props> = ({
}) => {
return (
<section className="todoapp__main" data-cy="TodoList">
{todos.map(todo => (
{filteredTodos.map(todo => (
<TodoItem
todo={todo}
onDelete={onDelete}
Expand Down

0 comments on commit ce979e7

Please sign in to comment.