Skip to content

Commit 8521ce0

Browse files
committed
ToDos filtered by categories
1 parent 33bf9d7 commit 8521ce0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ToDoList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import React, { FC } from 'react'
22
import ToDo from './ToDo'
33

44

5-
const ToDoList = ({ todos, setTodos }: any) => {
5+
const ToDoList = ({ todos, setTodos, toDoFilter }: any) => {
66

77
return (
88

99
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
1010

1111
<ul style={{ listStyle: 'none', fontSize: '1.5rem', fontFamily: 'Indie Flower', color: '#F7F9F9', minWidth: '50vh', }}>
12-
{todos.map( (todo: any) => (
12+
{toDoFilter.map( (todo: any) => (
1313
<ToDo text = {todo.text} id = {todo.id} key={todo.id} todos = {todos} setTodos = {setTodos} todo={todo} />
1414
))}
1515
</ul>

0 commit comments

Comments
 (0)