🐛 Corrige l'affichage des variations

pull/50/head
Laurent Bossavit 2017-09-30 15:04:11 +02:00
parent c760a6a12c
commit db35d3ce51
1 changed files with 6 additions and 12 deletions

View File

@ -111,19 +111,13 @@ let devariate = (recurse, k, v) => {
<ul>
{ explanation.map((c, i) =>
[<li className="variation" key={JSON.stringify(c.variation)}>
<ul className="variationAttributes">
{R.toPairs(c.condition).map(([k,v]) =>
<li>
<span>{k}: </span>
<span>{v}</span>
</li>
)}
</ul>
<div className="content">
{makeJsx(c)}
<div className="condition">
{makeJsx(c.condition)}
<div className="content">
{makeJsx(c)}
</div>
</div>
</li>,
i < (explanation.length - 1) && <li className="variationsSymbol"><i className="fa fa-plus-circle" aria-hidden="true"></i></li>
</li>
])
}
</ul>