From a48352273cd533af3afee7248112db7d02bb76fb Mon Sep 17 00:00:00 2001
From: Gauthier <ext.sopra.glefevre@grandlyon.com>
Date: Tue, 16 Jun 2020 15:14:30 +0200
Subject: [PATCH] correction-issues-9-4-10

---
 src/components/ContentComponents/FAQ/FAQ.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/components/ContentComponents/FAQ/FAQ.tsx b/src/components/ContentComponents/FAQ/FAQ.tsx
index 465a52c07..7bd7d5a3f 100644
--- a/src/components/ContentComponents/FAQ/FAQ.tsx
+++ b/src/components/ContentComponents/FAQ/FAQ.tsx
@@ -46,6 +46,23 @@ const decoreText = (line: string) => {
         {line.substring(indexEnd + 4, line.length)}
       </>
     )
+  } else if (line.includes('<mailto>')) {
+    const indexStart = line.indexOf('Vous')
+    const indexEnd = line.indexOf('</mailto>')
+    return (
+      <>
+        {line.substring(8, indexStart)}
+        <a
+          href={'mailto:ecolyo@grandlyon.com'}
+          target="_blank"
+          rel="noopener noreferrer"
+        >
+          {line.substring(indexStart, indexEnd)}
+        </a>
+
+        {line.substring(line.length)}
+      </>
+    )
   } else {
     return line
   }
-- 
GitLab