diff --git a/src/components/Newsletter/CustomLink.tsx b/src/components/Newsletter/CustomLink.tsx index 53a6d360e9c6e0d388d9cf3a138188ac877b26c7..6157f867664c023f7c3fc52313960b4096029a46 100644 --- a/src/components/Newsletter/CustomLink.tsx +++ b/src/components/Newsletter/CustomLink.tsx @@ -15,17 +15,25 @@ const CustomLink: React.FC<EcolyoLinkProps> = ({ onChange, editorState }) => { const [open, setOpen] = useState<boolean>(false) const links: LinkState[] = [ { - displayTitle: 'Consommation', - link: 'consumption', + displayTitle: 'Analyse', + link: 'analysis', }, { - displayTitle: "Consommation d'électricité", - link: 'consumption/electricity', + displayTitle: 'Astuces', + link: 'ecogestures', + }, + { + displayTitle: 'Consommation', + link: 'consumption', }, { displayTitle: "Consommation d'eau", link: 'consumption/water', }, + { + displayTitle: "Consommation d'électricité", + link: 'consumption/electricity', + }, { displayTitle: 'Consommation de gaz', link: 'consumption/gas', @@ -35,22 +43,15 @@ const CustomLink: React.FC<EcolyoLinkProps> = ({ onChange, editorState }) => { link: 'challenges', }, { - displayTitle: 'Astuces', - link: 'ecogestures', + displayTitle: 'Options', + link: 'options', }, { displayTitle: 'Sélection des Astuces', link: 'ecogesture-selection', }, - { - displayTitle: 'Analyse', - link: 'analysis', - }, - { - displayTitle: 'Options', - link: 'options', - }, ] + const appendLink = (link: LinkState) => { const data = `<a href="{cozyUrl}${link.link}">${link.displayTitle}</a>` const { contentBlocks, entityMap } = htmlToDraft(data)