Skip to content

Develop - #1334

Open
Kobeliukh wants to merge 13 commits into
mate-academy:masterfrom
Kobeliukh:develop
Open

Develop#1334
Kobeliukh wants to merge 13 commits into
mate-academy:masterfrom
Kobeliukh:develop

Conversation

@Kobeliukh

Copy link
Copy Markdown

@2pasha 2pasha left a comment

Copy link
Copy Markdown

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 ⬇️

Comment thread src/components/TodoList/TodoList.tsx Outdated
const getFilteredTodos = (todos: Todo[], filter: Filter) => {
return todos.filter(todo => {
switch (filter) {
case 'all':

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

it's better to use enum filter value

Comment thread src/types/Filter.ts Outdated
@@ -0,0 +1 @@
export type Filter = 'all' | 'active' | 'completed';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

i would recommend use enum here and use its values instead of hardcoded 'all', 'active', 'completed'

@Kobeliukh
Kobeliukh requested a review from 2pasha August 6, 2026 15:18

@Anton-Kuchmasov Anton-Kuchmasov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good job!

Deploy is not working due to Github degration:

Image

please re-deploy your page when Github Status will be updated

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