diff --git a/src/components/Newsletter/CustomLink.tsx b/src/components/Newsletter/CustomLink.tsx index 0a3492139c1617f8709c9cd4daed82676abcf663..6157f867664c023f7c3fc52313960b4096029a46 100644 --- a/src/components/Newsletter/CustomLink.tsx +++ b/src/components/Newsletter/CustomLink.tsx @@ -15,26 +15,43 @@ 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: 'Astuces', link: 'ecogestures', }, { - displayTitle: 'Sélection des Astuces', - link: 'ecogesture-selection', + displayTitle: 'Consommation', + link: 'consumption', }, { - displayTitle: 'Analyse', - link: 'analysis', + displayTitle: "Consommation d'eau", + link: 'consumption/water', + }, + { + displayTitle: "Consommation d'électricité", + link: 'consumption/electricity', + }, + { + displayTitle: 'Consommation de gaz', + link: 'consumption/gas', + }, + { + displayTitle: 'Défis', + link: 'challenges', }, { displayTitle: 'Options', link: 'options', }, + { + displayTitle: 'Sélection des Astuces', + link: 'ecogesture-selection', + }, ] + const appendLink = (link: LinkState) => { const data = `<a href="{cozyUrl}${link.link}">${link.displayTitle}</a>` const { contentBlocks, entityMap } = htmlToDraft(data)