Skip to content

Commit

Permalink
fix: change structure
Browse files Browse the repository at this point in the history
  • Loading branch information
maximmorenko committed Aug 22, 2023
1 parent fb2a0bd commit 10dfd3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Person/Person.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import React from 'react';
export const Person = ({ person }) => (
<section className="Person">
<h2 className="Person__name">
My name is
{`My name is `}
{person.name}
</h2>
{person.age && (
<p className="Person__age">
I am
{`I am `}
{person.age}
</p>
)}
{person.isMarried ? (
<p className="Person__partner">
{person.partnerName}
is my
{` is my `}
{person.sex === 'm' ? 'wife' : 'husband'}
</p>
) : (
Expand Down

0 comments on commit 10dfd3a

Please sign in to comment.