Skip to content
Snippets Groups Projects
Commit 0adbc91a authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

feat: updated case of ecolyo links

parent 19a942cc
No related branches found
No related tags found
2 merge requests!131MEP,!130Resolve "[LETTRE MENSUELLE] Ajouter une majuscule à chaque nom de page"
Pipeline #77701 passed
......@@ -23,7 +23,7 @@ const CustomLink: React.FC<EcolyoLinkProps> = ({ onChange, editorState }) => {
link: 'ecogestures',
},
{
displayTitle: 'Sélection des astuces',
displayTitle: 'Sélection des Astuces',
link: 'ecogesture-selection',
},
{
......@@ -36,9 +36,7 @@ const CustomLink: React.FC<EcolyoLinkProps> = ({ onChange, editorState }) => {
},
]
const appendLink = (link: LinkState) => {
const data = `<a href="{cozyUrl}${
link.link
}">${link.displayTitle.toLowerCase()}</a>`
const data = `<a href="{cozyUrl}${link.link}">${link.displayTitle}</a>`
const { contentBlocks, entityMap } = htmlToDraft(data)
const contentState = Modifier.replaceWithFragment(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment