diff --git a/src/components/ContentComponents/FAQ/FAQ.tsx b/src/components/ContentComponents/FAQ/FAQ.tsx index 465a52c07edaf06fa2438bdb498f494c1b0cc924..7bd7d5a3fce8d691191fe96951e41441a39054a3 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 }