Skip to content
Snippets Groups Projects
Commit 30ca9e99 authored by Adel LAKHDAR's avatar Adel LAKHDAR
Browse files

Merge branch 'feat/add-challenge-page' into 'dev'

feat(edition): add challenge page to edition

See merge request !147
parents b1a04a15 89716226
No related branches found
No related tags found
2 merge requests!157Release to master,!147feat(edition): add challenge page to edition
Pipeline #97963 passed
......@@ -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)
......
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