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

react_todo-app #767

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

react_todo-app #767

wants to merge 4 commits into from

Conversation

OlegRak86
Copy link

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

  1. must be 3 items left
image
  1. you need to remove the todo when edit todo is empty
image

checked={checkbox}
ref={checkedAllTodo}
readOnly
onClick={() => handeltAll()}

Choose a reason for hiding this comment

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

Suggested change
onClick={() => handeltAll()}
onClick={handeltAll}

Comment on lines 27 to 31
if (!state.some(elem => elem.completed === false) && state.length > 0) {
setCheckbox(true);
} else {
setCheckbox(false);
}

Choose a reason for hiding this comment

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

Suggested change
if (!state.some(elem => elem.completed === false) && state.length > 0) {
setCheckbox(true);
} else {
setCheckbox(false);
}
setCheckbox(!state.some(elem => elem.completed === false) && state.length > 0);

Comment on lines 14 to 20
if (!checked) {
dispatch({ type: ActionType.toggleAll, payload: !checked });
}

if (checked) {
dispatch({ type: ActionType.toggleAll, payload: !checked });
}

Choose a reason for hiding this comment

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

looks the same, why do we need these if's

@OlegRak86 OlegRak86 requested a review from etojeDenys November 9, 2023 17:50
Copy link

@anastasiia-tilikina anastasiia-tilikina left a comment

Choose a reason for hiding this comment

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

  1. This issue is not fixed.
    image

  2. You need to implement saving data to local storage
    image

Copy link

@xiimiik xiimiik left a comment

Choose a reason for hiding this comment

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

if title empty or contain only space, todo should not add to a list
Снимок экрана 2023-11-10 в 12 36 24

@OlegRak86 OlegRak86 requested a review from xiimiik November 10, 2023 10:46
Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

Looks good.
Just want to pay attention that footer shouldn't be visible when no any todos.

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.

5 participants