From b9fd79dbcdf6a64c9ab34bbdb84975a0cf94fb61 Mon Sep 17 00:00:00 2001 From: lanalightmj Date: Tue, 17 Dec 2024 21:56:29 +0200 Subject: [PATCH] fixed task --- src/App.jsx | 17 +++-------------- src/components/Person/Person.jsx | 6 +++--- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index e61f13802..19f7916e6 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -28,22 +28,11 @@ export const alex = { export const App = () => (
- +
); diff --git a/src/components/Person/Person.jsx b/src/components/Person/Person.jsx index 1d69a8408..f07f04ce8 100644 --- a/src/components/Person/Person.jsx +++ b/src/components/Person/Person.jsx @@ -2,14 +2,14 @@ export const Person = ({ person }) => (

{`My name is ${person.name}`}

- {person.age ?

I am ${person.age}

: null} + {person.age ? I am ${person.age} : null}

{person.isMarried === true ? (

{person.sex === 'm' ? ( -

${person.partnerName} is my wife

+ ${person.partnerName} is my wife ) : ( -

${person.partnerName} is my husband

+ ${person.partnerName} is my husband )}

) : (