diff --git a/source/components/rule/RuleValueVignette.js b/source/components/rule/RuleValueVignette.js index b24ff0027..46c4408e0 100644 --- a/source/components/rule/RuleValueVignette.js +++ b/source/components/rule/RuleValueVignette.js @@ -1,13 +1,13 @@ -import React from "react" -import { Link } from "react-router-dom" -import { encodeRuleName } from "Engine/rules" -import classNames from "classnames" -import { capitalise0 } from "../../utils" -let fmt = new Intl.NumberFormat("fr-FR").format +import React from 'react' +import { Link } from 'react-router-dom' +import { encodeRuleName } from 'Engine/rules' +import classNames from 'classnames' +import { capitalise0 } from '../../utils' +let fmt = new Intl.NumberFormat('fr-FR').format export let humanFigure = decimalDigits => value => fmt(value.toFixed(decimalDigits)) -import "./RuleValueVignette.css" -import ReactCSSTransitionGroup from "react-addons-css-transition-group" +import './RuleValueVignette.css' +import ReactCSSTransitionGroup from 'react-addons-css-transition-group' export default ({ name, @@ -19,16 +19,16 @@ export default ({ do { let unsatisfied = ruleValue == null, irrelevant = ruleValue == 0, - number = typeof ruleValue == "number" && ruleValue > 0 + number = typeof ruleValue == 'number' && ruleValue > 0 ; - +
{title} do { let [className, text] = irrelevant - ? ["irrelevant", "Vous n'êtes pas concerné"] + ? ['irrelevant', 'Vous n\'êtes pas concerné'] : unsatisfied - ? ["unsatisfied", "En attente de vos réponses..."] - : ["figure", humanFigure(2)(ruleValue) + " €"] + ? ['unsatisfied', 'En attente de vos réponses...'] + : ['figure', humanFigure(2)(ruleValue) + ' €'] { /*

Pourquoi ?

*/ @@ -57,7 +57,7 @@ let RuleValue = ({ unsatisfied, irrelevant, conversationStarted, ruleValue }) => transitionLeaveTimeout={100} > - {" "} + {' '} {conversationStarted && {text}}