Skip to content

react_todo-app#1322

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

react_todo-app#1322
valerij0412 wants to merge 3 commits into
mate-academy:masterfrom
valerij0412:develop

Conversation

@valerij0412

Copy link
Copy Markdown

@brespect brespect 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.

Almost done, add an error on submitting empty todo, also check this:

Comment thread src/components/TodoFooter.tsx Outdated
import { useTodos } from '../context/TodoContext';

export const TodoFooter: React.FC = () => {
// Дістаємо всі потрібні змінні та функції з Контексту

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove all comments

Comment thread src/App.tsx Outdated
export const App: React.FC = () => {
const { todos } = useTodos(); // Дістаємо справи з Контексту

// Перевіряємо, чи є хоча б одна справа

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

check everywhere

Comment on lines +18 to +43
<nav className="filter" data-cy="Filter">
<a
href="#/"
className={`filter__link ${filter === 'all' ? 'selected' : ''}`}
data-cy="FilterLinkAll"
onClick={() => setFilter('all')}
>
All
</a>
<a
href="#/active"
className={`filter__link ${filter === 'active' ? 'selected' : ''}`}
data-cy="FilterLinkActive"
onClick={() => setFilter('active')}
>
Active
</a>
<a
href="#/completed"
className={`filter__link ${filter === 'completed' ? 'selected' : ''}`}
data-cy="FilterLinkCompleted"
onClick={() => setFilter('completed')}
>
Completed
</a>
</nav>

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 simplify this using Array.map()

Comment thread src/components/TodoFooter.tsx Outdated
<nav className="filter" data-cy="Filter">
<a
href="#/"
className={`filter__link ${filter === 'all' ? 'selected' : ''}`}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

add enums to string values

@valerij0412 valerij0412 requested a review from brespect June 12, 2026 15:40

@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.

Great job!

Just one tiny issue remaining!

Image

Would you mind to fix this UI bug?

@etojeDenys etojeDenys 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

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.

4 participants