diff --git a/source/components/rule/Rule.js b/source/components/rule/Rule.js index 5072f2949..66dcb3e9b 100644 --- a/source/components/rule/Rule.js +++ b/source/components/rule/Rule.js @@ -1,28 +1,37 @@ -import { T } from "Components"; -import withColours from 'Components/utils/withColours'; -import withLanguage from 'Components/utils/withLanguage'; -import withSitePaths from 'Components/utils/withSitePaths'; -import { getInputComponent } from 'Engine/generateQuestions'; -import knownMecanisms from 'Engine/known-mecanisms.yaml'; -import { createMarkdownDiv } from 'Engine/marked'; -import { encodeRuleName, findRuleByDottedName, findRuleByNamespace } from 'Engine/rules'; -import { compose, isEmpty, isNil } from 'ramda'; -import React, { Component, Suspense } from 'react'; -import emoji from 'react-easy-emoji'; -import Helmet from 'react-helmet'; -import { Trans, withTranslation } from 'react-i18next'; -import { connect } from 'react-redux'; -import { Link } from 'react-router-dom'; -import { reduxForm } from 'redux-form'; -import { exampleAnalysisSelector, flatRulesSelector, noUserInputSelector, ruleAnalysisSelector } from 'Selectors/analyseSelectors'; -import Animate from 'Ui/animate'; -import Montant from 'Ui/Montant'; -import { AttachDictionary } from '../AttachDictionary'; -import Algorithm from './Algorithm'; -import Examples from './Examples'; -import RuleHeader from './Header'; -import References from './References'; -import './Rule.css'; +import { T } from 'Components' +import withColours from 'Components/utils/withColours' +import withLanguage from 'Components/utils/withLanguage' +import withSitePaths from 'Components/utils/withSitePaths' +import { getInputComponent } from 'Engine/generateQuestions' +import knownMecanisms from 'Engine/known-mecanisms.yaml' +import { createMarkdownDiv } from 'Engine/marked' +import { + encodeRuleName, + findRuleByDottedName, + findRuleByNamespace +} from 'Engine/rules' +import { compose, isEmpty, isNil } from 'ramda' +import React, { Component, Suspense } from 'react' +import emoji from 'react-easy-emoji' +import Helmet from 'react-helmet' +import { Trans, withTranslation } from 'react-i18next' +import { connect } from 'react-redux' +import { Link } from 'react-router-dom' +import { reduxForm } from 'redux-form' +import { + exampleAnalysisSelector, + flatRulesSelector, + noUserInputSelector, + ruleAnalysisSelector +} from 'Selectors/analyseSelectors' +import Animate from 'Ui/animate' +import Montant from 'Ui/Montant' +import { AttachDictionary } from '../AttachDictionary' +import Algorithm from './Algorithm' +import Examples from './Examples' +import RuleHeader from './Header' +import References from './References' +import './Rule.css' let LazySource = React.lazy(() => import('./RuleSource')) @@ -49,7 +58,7 @@ export default compose( valuesToShow, sitePaths, analysedExample, - analysedRule, + analysedRule } = this.props, flatRule = findRuleByDottedName(flatRules, dottedName) let { type, name, title, description, question, ns, icon } = flatRule, @@ -69,10 +78,15 @@ export default compose( ) : (
- - {title} - - + { let activated = trancheValue > 0 - console.log(trancheValue, min, max) return (