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

add task solution #853

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

Conversation

arturwisnia
Copy link

Copy link

@choeqq choeqq left a comment

Choose a reason for hiding this comment

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

LGTM ✅

Comment on lines +188 to +215
<header className="todoapp__header">
<button
type="button"
data-cy="ToggleAllButton"
className={`todoapp__toggle-all ${
todos.every((todo) => todo.completed) ? 'active' : ''
}`}
onClick={() => toggleAll()}
/>

<form
onSubmit={(e) => {
e.preventDefault();
handleAddTodo(newTitle);
}}
>
<input
ref={newTodoInputRef}
data-cy="NewTodoField"
type="text"
className="todoapp__new-todo"
placeholder="What needs to be done?"
value={newTitle}
onChange={(e) => setNewTitle(e.target.value)}
disabled={isLoading}
/>
</form>
</header>
Copy link

Choose a reason for hiding this comment

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

this looks like a separate component 😄

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.

2 participants