⚙️ Donne une indication visuelle des tranches appliquées

pull/59/head
Laurent Bossavit 2017-09-30 21:26:45 +02:00
parent 60e61f4dc5
commit 84d0d13510
1 changed files with 3 additions and 1 deletions

View File

@ -480,7 +480,9 @@ export let mecanismScale = (recurse,k,v) => {
<th>Taux</th>
</tr>
{explanation.tranches.map(({'en-dessous de': maxOnly, 'au-dessus de': minOnly, de: min, 'à': max, taux}) =>
<tr key={min || minOnly || 0}>
<tr key={min || minOnly || 0}
style={{fontWeight: (explanation.assiette.nodeValue * explanation['multiplicateur des tranches'].nodeValue > min ? ' bold' : '')}}
>
<td>
{ maxOnly ? 'En dessous de ' + maxOnly
: minOnly ? 'Au dessus de ' + minOnly