Skip to content

solution#1312

Open
Nika-Andriy wants to merge 3 commits into
mate-academy:masterfrom
Nika-Andriy:develop
Open

solution#1312
Nika-Andriy wants to merge 3 commits into
mate-academy:masterfrom
Nika-Andriy:develop

Conversation

@Nika-Andriy
Copy link
Copy Markdown

Copy link
Copy Markdown

@2pasha 2pasha 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! 👏

take a look on comments below ⬇️

  1. this item shouldn't be visible
Image
  1. fix inputs size
Image Image

Comment thread src/components/TodoItem.tsx Outdated
Comment on lines +111 to +114
onDoubleClick={() => {
setEditTodoId(todo.id);
setEditTitle(todo.title);
}}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

move to separate fn

Comment thread src/components/TodoItem.tsx Outdated
Comment on lines +97 to +102
onKeyDown={event => {
if (event.key === 'Escape') {
event.preventDefault();
handleCancel();
}
}}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

move to separate fn

Comment thread src/components/TodoFooter.tsx Outdated
Comment on lines +21 to +52
<a
href="#/"
className={classNames('filter__link', {
selected: filter === Filter.All,
})}
data-cy="FilterLinkAll"
onClick={() => setFilter(Filter.All)}
>
All
</a>

<a
href="#/active"
className={classNames('filter__link', {
selected: filter === Filter.Active,
})}
data-cy="FilterLinkActive"
onClick={() => setFilter(Filter.Active)}
>
Active
</a>

<a
href="#/completed"
className={classNames('filter__link', {
selected: filter === Filter.Completed,
})}
data-cy="FilterLinkCompleted"
onClick={() => setFilter(Filter.Completed)}
>
Completed
</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you may add these values to array or object and map through it to avoid code duplication

@Nika-Andriy Nika-Andriy requested a review from 2pasha May 26, 2026 09:37
Copy link
Copy Markdown

@brespect brespect left a comment

Choose a reason for hiding this comment

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

Almost done, fix the UI input focus:
Image

@Nika-Andriy Nika-Andriy requested a review from brespect May 26, 2026 10:29
Copy link
Copy Markdown

@brespect brespect left a comment

Choose a reason for hiding this comment

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

Lgtm

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