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

Merge branch '24-lettre-mensuelle-ajouter-une-majuscule-a-chaque-nom-de-page' into 'dev'

Resolve "[LETTRE MENSUELLE] Ajouter une majuscule à chaque nom de page"

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