add task solution#3744
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your implementation correctly fulfills all core functional requirements. The Person component properly destructures props, renders all required information with the correct class names, handles conditional age display, uses appropriate gender-specific partner terminology, and shows the "I am not married" message when applicable. There's a minor formatting preference noted in the checklist regarding the ternary operator on line 12 — the operands should ideally be on separate lines for readability (though this is a style preference rather than a functional issue). Your code works exactly as intended, and this style consideration won't affect how the component behaves. Great work on meeting all the functional requirements!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Footnotes
| {age && <p className="Person__age">I am {age}</p>} | ||
| {isMarried ? ( | ||
| <p className="Person__partner"> | ||
| {partnerName} {sex === 'm' ? 'is my wife' : 'is my husband'} |
There was a problem hiding this comment.
Checklist Item #2 violation: The inner ternary operator operands should be on separate lines for better readability. Move each operand to its own line:
{partnerName} {
sex === 'm'
? 'is my wife'
: 'is my husband'
}```
DEMO LINK