Skip to content
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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

voronine
Copy link

Copy link

@roman-mirzoian roman-mirzoian left a 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

src/App.tsx Outdated Show resolved Hide resolved
src/App.tsx Outdated Show resolved Hide resolved
src/App.tsx Outdated Show resolved Hide resolved
src/App.tsx Outdated Show resolved Hide resolved
src/Components/ErrorNotification.tsx Outdated Show resolved Hide resolved
src/Components/ErrorNotification.tsx Outdated Show resolved Hide resolved
src/Components/ErrorNotification.tsx Show resolved Hide resolved
src/Components/Footer.tsx Outdated Show resolved Hide resolved
src/Components/Header.tsx Outdated Show resolved Hide resolved
src/Components/TodoItem.tsx Outdated Show resolved Hide resolved
Copy link

@roman-mirzoian roman-mirzoian left a 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

src/Components/Footer.tsx Outdated Show resolved Hide resolved
src/Components/Footer.tsx Outdated Show resolved Hide resolved
src/Components/Header.tsx Outdated Show resolved Hide resolved
src/App.tsx Outdated Show resolved Hide resolved
src/App.tsx Outdated Show resolved Hide resolved
src/App.tsx Show resolved Hide resolved
src/App.tsx Show resolved Hide resolved
src/Components/Footer.tsx Outdated Show resolved Hide resolved
src/Components/TodoItem.tsx Outdated Show resolved Hide resolved
@voronine voronine requested a review from Moroz-Dmytro October 4, 2023 03:47
}, 3000));
}, [errorMessage, errorTimer]);

const hasTodos = !!todos.length;

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 {
//

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 = (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const filterTodos = (
export const getFilteredTodos = (

@@ -0,0 +1,5 @@
export enum ForComletedTodo {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export enum ForComletedTodo {
export enum TodoStatus {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants