From 93780020bc95f12125d6c282c1c1a062b02ecc18 Mon Sep 17 00:00:00 2001
From: rlacko <rlacko@sch.bme.hu>
Date: Tue, 11 Feb 2020 13:10:35 +0100
Subject: [PATCH] fix new line

---
 src/components/pages/ApplicantProfile.js | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/components/pages/ApplicantProfile.js b/src/components/pages/ApplicantProfile.js
index 913f609..e8614de 100644
--- a/src/components/pages/ApplicantProfile.js
+++ b/src/components/pages/ApplicantProfile.js
@@ -23,11 +23,17 @@ class ApplicantProfile extends Component {
             <Item.Description>
               <Container textAlign='justified' style={{ padding: '1em' }}>
                 <Header as='h3'>MagamrĂłl, eddigi tevĂŠkenysĂŠgem:</Header>
-                <p>{motivation_about}</p>
+                <p>{motivation_about
+                  ?.split ('\n').map ((item, i) => <div key={i}>{item}</div>)}
+                </p>
                 <Header as='h3'>Szakmai motivĂĄciĂł:</Header>
-                <p>{motivation_profession}</p>
+                <p>{motivation_profession
+                  ?.split ('\n').map ((item, i) => <div key={i}>{item}</div>)}
+                </p>
                 <Header as='h3'>Feladatok megoldĂĄsa:</Header>
-                <p>{motivation_exercise}</p>
+                <p>{motivation_exercise
+                  ?.split ('\n').map ((item, i) => <div key={i}>{item}</div>)}
+                </p>
               </Container>
               <Container textAlign='center' style={{ padding: '1em' }}>
                 <Header as='h3'>StĂĄtusz:</Header>
-- 
GitLab