Skip to content
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

add task solution #2628

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

DariaFesiun
Copy link

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on implementing the main functionality of the application! 🎉 The code is well-structured and meets most of the task requirements. There are a couple of minor issues to address, such as integrating the classnames library for conditional class definitions and refining the Loader component logic. Keep up the good work and consider these improvements for future projects! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +78 to +79
{todos.length === 0 ? (
<Loader />

Choose a reason for hiding this comment

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

The Loader component is displayed when todos.length === 0. This logic might cause the loader to appear even when there are no todos to fetch or display. Consider checking if the data is still being fetched to conditionally render the Loader component.


interface Props {
todo: Todo | null;
setModalOpen: (val: boolean) => void;

Choose a reason for hiding this comment

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

The setModalOpen function is expected to take a boolean value, but in the handleCloseModal function, it is called with false. Ensure that this aligns with the intended functionality, as the function signature suggests it should be used to open or close the modal.

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.

2 participants