-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
togle completed, allTodoCompleted, esc #818
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, but there is quite a bit of work to be done.
You can also now add empty spaces to the title and Todo will not be deleted:
https://gyazo.com/03789f47a4c408f21448fa4e77eae3c5
…ndleToggleTodo&hadleAddTodo async
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good fixed, but this bug still not fixed:
You can also now add empty spaces to the title and Todo will not be deleted:
https://gyazo.com/03789f47a4c408f21448fa4e77eae3c5
}, 3000)); | ||
}, [errorMessage, errorTimer]); | ||
|
||
const hasTodos = !!todos.length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is not really needed
|
||
setIsEditing(false); | ||
} catch { | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should do something here
import { Todo } from '../types/Todo'; | ||
import { ForComletedTodo } from '../types/enumFilter'; | ||
|
||
export const filterTodos = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const filterTodos = ( | |
export const getFilteredTodos = ( |
@@ -0,0 +1,5 @@ | |||
export enum ForComletedTodo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export enum ForComletedTodo { | |
export enum TodoStatus { |
DEMO LINK