diff --git a/config.json b/config.json index be2d5bd472ac148867bdcbd45401e3b688cea88e..97b6afd35d485ef36d3b7a831733288265a4bed6 100644 --- a/config.json +++ b/config.json @@ -11,7 +11,7 @@ "oauth": true, "slug": "enedisgrandlyon" }, - "siteLink": "https://mon-compte-client.enedis.fr/" + "siteLink": "https://mon-compte-particulier.enedis.fr/donnees/" }, { "fluidTypeId": 1, diff --git a/src/components/ContentComponents/ConsumptionNavigator/ActivateHalfHourLoad.tsx b/src/components/ContentComponents/ConsumptionNavigator/ActivateHalfHourLoad.tsx index 958cb0db6b07440c029edc66911ba14e62a6959a..12fb02fcf7cfa9284ce6b003fa5d383225065e78 100644 --- a/src/components/ContentComponents/ConsumptionNavigator/ActivateHalfHourLoad.tsx +++ b/src/components/ContentComponents/ConsumptionNavigator/ActivateHalfHourLoad.tsx @@ -3,14 +3,13 @@ import { translate } from 'cozy-ui/react/I18n' import StyledAuthButton from 'components/CommonKit/Button/StyledAuthButton' import StyledIcon from 'components/CommonKit/Icon/StyledIcon' import iconEnedisLogo from 'assets/icons/visu/enedis-logo.svg' -import Config from '../../../../config.json' +import ConfigService from 'services/fluidConfig.service' interface ActivateHalfHourLoadProps { t: Function // translation service } const ActivateHalfHourLoad = ({ t }: ActivateHalfHourLoadProps) => { - const siteLink = Config.fluidConfig[0].siteLink //TODO change here - + const fluidConfig = new ConfigService().getFluidConfig() return ( <div className="cta-box"> <div className="cta-box-header header-text text-16-normal"> @@ -20,7 +19,7 @@ const ActivateHalfHourLoad = ({ t }: ActivateHalfHourLoadProps) => { className="cta-box-button" type="button" color="primary" - onClick={() => window.open(siteLink, '_blank')} + onClick={() => window.open(fluidConfig[0].siteLink, '_blank')} > <div className="oauthform-button-content"> <div className="oauthform-button-content-icon"> diff --git a/src/locales/fr.json b/src/locales/fr.json index 46dccccc2630fc197c1179175eb0ae0697c3570a..3359efb4672d5372bab8ebcf7358685555fa9bcf 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -261,8 +261,7 @@ "activate": { "enedis": { "info": "Pour visualiser vos consommations à la 1/2 heure, il vous faut valider l'activation de l'enregistrement de votre consommation horaire sur votre compte Enedis", - "label1": "Activer sur mon compte Enedis", - "activateLink": "https://mon-compte-client.enedis.fr/" + "label1": "Activer sur mon compte Enedis" } } },