From 8b8afd528b4a6606f14c2467887452089ef717c0 Mon Sep 17 00:00:00 2001 From: Mael Date: Tue, 23 Jul 2019 14:21:35 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20l'unit=C3=A9=20aux=20bar=C3=A8mes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/mecanismViews/Barème.js | 13 +++++++++---- source/engine/mecanismViews/BarèmeContinu.js | 7 ++++--- source/règles/base.yaml | 1 + 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/source/engine/mecanismViews/Barème.js b/source/engine/mecanismViews/Barème.js index 9c19d8f1a..ae040adae 100644 --- a/source/engine/mecanismViews/Barème.js +++ b/source/engine/mecanismViews/Barème.js @@ -37,7 +37,8 @@ let Component = withLanguage(function Barème({ nodeValue, explanation, barèmeType, - lazyEval + lazyEval, + unit }) { return ( @@ -46,6 +47,7 @@ let Component = withLanguage(function Barème({ classes="mecanism barème" name={barèmeType === 'marginal' ? 'barème' : 'barème linéaire'} value={nodeValue} + unit={unit} child={