-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Develop #1480
base: master
Are you sure you want to change the base?
Develop #1480
Conversation
RostyslavSharuiev
commented
Oct 19, 2024
- DEMO LINK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good but u need to fix the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job 👍
let's improve your solution
Watch the attached video and fix the setting the completed or active status
https://www.loom.com/share/97916aa3be0542939a584748959138ac?sid=b820ea2a-21eb-4aae-879d-4404a2af64fc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
{tempTodo && ( | ||
<TodoItem | ||
todo={tempTodo} | ||
setIdsForDelete={setIdsForDelete} | ||
setIdsForUpdate={setIdsForUpdate} | ||
setNewTodoData={setNewTodoData} | ||
/> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it can be put inside TodoList component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/TodoItem/TodoItem.tsx
Outdated
/> | ||
</label> | ||
|
||
{!isEditing ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{!isEditing ? ( | |
{isEditing ? ( |
It is a good practice to use positive boolean for ternary operator condition, not the objection of it
src/components/TodoItem/TodoItem.tsx
Outdated
data-cy="TodoLoader" | ||
className={cn('modal overlay', { | ||
'is-active': | ||
!id || idsForDelete?.includes(id) || idsForUpdate?.includes(id), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great to create a variable for it for better readability