mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
making build much much faster
This commit is contained in:
@@ -12,7 +12,7 @@ interface TodoListProps {
|
||||
}
|
||||
|
||||
export const TodoList = (props: TodoListProps) => {
|
||||
const { filter, todos, complete, remove, edit } = this.props;
|
||||
const { filter, todos, complete, remove, edit } = props;
|
||||
const filteredTodos = Object.keys(todos).filter(id => {
|
||||
return filter === 'all' || (filter === 'completed' && todos[id].completed) || (filter === 'active' && !todos[id].completed);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user