Solution#3722
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your implementation is approved. The code correctly implements all required features: the Person component properly destructures props, conditionally renders the optional age field, uses husband/wife terminology based on sex, and displays the appropriate marriage status message. The class names follow the specification, and ternary operators are formatted across multiple lines as required. The test failures you're seeing are not caused by your code - they're due to a platform incompatibility issue. Your package-lock.json was generated on Windows and contains Windows-specific native binaries (@rollup/rollup-win32-x64-msvc) that can't run on the Linux CI environment. To resolve this, delete package-lock.json and run npm install on a Linux machine to regenerate a compatible lockfile, then commit the updated file.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your implementation is approved. All requirements have been correctly implemented: the Person component properly destructures the person prop, conditionally renders the age field, uses husband/wife terminology based on sex, and displays the appropriate marriage status messages. The class names match the specification exactly, and the ternary operator is correctly formatted across multiple lines. No issues were found.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
DEMO LINK