Skip to content

Commit 262f09e

Browse files
committed
filterTodos, setFilterToDos passed as props
1 parent be3d62a commit 262f09e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const App: FC = () => {
1717
<h3 style={{ fontSize: '2.5rem', fontFamily: 'Gloria Hallelujah', color: '#F7F9F9',}}>Your To Do List</h3>
1818
</header>
1919

20-
<AddTaskForm setToDoInput = {setToDoInput} todos = {todos} setTodos = {setTodos} toDoInput = {toDoInput} />
20+
<AddTaskForm setToDoInput = {setToDoInput} todos = {todos} setTodos = {setTodos} toDoInput = {toDoInput} filterTodos = {filterTodos} setFilterTodos = {setFilterTodos} />
2121
<ToDoList todos = {todos} setTodos = {setTodos} />
2222

2323
</div>

src/components/AddTaskForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { ChangeEvent, FC } from 'react'
22

33

44

5-
const AddTaskForm = ( {setToDoInput, todos, setTodos, toDoInput}: any ) => {
5+
const AddTaskForm = ( {setToDoInput, todos, setTodos, toDoInput, filterTodos, setFilterTodos}: any ) => {
66

77
const ToDoInputHandler = function (e: ChangeEvent<HTMLInputElement>): void {
88

0 commit comments

Comments
 (0)