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

Develop #1697

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Develop #1697

wants to merge 2 commits into from

Conversation

Pidsvynok
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 task requirements! 🎉 The code is well-structured and meets the core functionality. There are a couple of minor improvements you could consider: refining the error handling in PeoplePage.tsx to ensure the error message only appears when necessary, and updating the route path for consistency. Keep up the great work and happy coding! 😊

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

<div className="container">
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="home" element={<Navigate to="/" replace />} />

Choose a reason for hiding this comment

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

The route path 'home' should be '/home' to maintain consistency with the other paths and ensure proper navigation. This might not cause a problem in this specific setup due to the redirect, but it's good practice to keep paths consistent.

Comment on lines +60 to +64
{isError && (
<p data-cy="peopleLoadingError" className="has-text-danger">
Something went wrong
</p>
)}

Choose a reason for hiding this comment

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

The error message is displayed even if there are people loaded successfully. Consider adding a condition to check if 'people' is empty before displaying the error message to avoid confusion.

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