Skip to content

Commit

Permalink
c2
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiSemennikov committed Nov 17, 2024
1 parent d09b94c commit f01bb8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Person/Person.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ export const Person = ({ person }) => (
<section className="Person">
<h2 className="Person__name">My name is {person.name}</h2>
{person.age ? <p className="Person__age">{`I am ${person.age}`}</p> : ''}
<p
className=/* {`Person ${person.partnerName ? */ "Person__partner" /* : 'Person__nopartner'}`} */
>
<p className="Person__partner">
{person.isMarried === true
? `${person.partnerName} is my `
: 'I am not married'}
Expand Down

0 comments on commit f01bb8f

Please sign in to comment.