Skip to content

add solution#2152

Open
GabrielSpelchuk wants to merge 3 commits intomate-academy:masterfrom
GabrielSpelchuk:develop
Open

add solution#2152
GabrielSpelchuk wants to merge 3 commits intomate-academy:masterfrom
GabrielSpelchuk:develop

Conversation

@GabrielSpelchuk
Copy link
Copy Markdown

@GabrielSpelchuk GabrielSpelchuk commented Mar 16, 2026

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

please deploy your app

and fix some comment below

Comment on lines +66 to +97
<a
href="#/"
className={classNames('filter__link', {
selected: filter === EFilter.all,
})}
data-cy="FilterLinkAll"
onClick={() => setFilter(EFilter.all)}
>
All
</a>

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

<a
href="#/completed"
className={classNames('filter__link', {
selected: filter === EFilter.completed,
})}
data-cy="FilterLinkCompleted"
onClick={() => setFilter(EFilter.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 create enum with filter values and map though it

Comment on lines +127 to +130
onDoubleClick={() => {
setTempTitle(todo.title);
setEdidingId(todo.id);
}}
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

@GabrielSpelchuk GabrielSpelchuk requested a review from 2pasha March 17, 2026 10:10
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.

Well done!

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