From 9ffbafd6927ea309db2b411543663bfd25415b99 Mon Sep 17 00:00:00 2001 From: Yoan VALLET <ext.sopra.yvallet@grandlyon.com> Date: Wed, 17 Feb 2021 18:16:34 +0100 Subject: [PATCH] feat: add cold water in profile options --- src/components/Options/ProfileTypeOptions.tsx | 8 ++++++++ src/locales/fr.json | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/Options/ProfileTypeOptions.tsx b/src/components/Options/ProfileTypeOptions.tsx index 9d2a800d0..46ccbbfc6 100644 --- a/src/components/Options/ProfileTypeOptions.tsx +++ b/src/components/Options/ProfileTypeOptions.tsx @@ -154,6 +154,14 @@ const ProfileTypeOptions: React.FC = () => { )} </div> <div className="fields"> + <div className="label"> + {t('profile_type.cold_water.title')} + </div> + <div className="value"> + {t( + `profile_type.cold_water.${profile.profileType.coldWater}_text` + )} + </div> <div className="label"> {t('profile_type.hot_water.title')} </div> diff --git a/src/locales/fr.json b/src/locales/fr.json index 57d9433c3..a204095e7 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -514,10 +514,12 @@ "text": "Équipé d'une pompe à chaleur ou poêle à bois" }, "cold_water": { - "title": "Eau froide", + "title": "Eau", "question": "Votre eau est-elle comprise dans vos charges collectives ?", "individual": "Non", - "collective": "Oui" + "collective": "Oui", + "individual_text": "Individuel", + "collective_text": "Collectif" }, "hot_water": { "title": "Eau chaude", -- GitLab