diff --git a/.eslintrc.yaml b/.eslintrc.yaml index c758bafb9..b9f09191e 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -15,9 +15,6 @@ rules: react/no-unescaped-entities: 0 react/display-name: 1 parser: babel-eslint -parserOptions: - ecmaFeatures: - legacyDecorators: true plugins: - react diff --git a/source/components/ComparativeSimulation.js b/source/components/ComparativeSimulation.js new file mode 100644 index 000000000..df55e897e --- /dev/null +++ b/source/components/ComparativeSimulation.js @@ -0,0 +1,77 @@ +import React from 'react' +import { connect } from 'react-redux' +import { isEmpty, compose } from 'ramda' +import Answers from 'Components/AnswerList' +import Conversation from 'Components/conversation/Conversation' +import withColours from 'Components/utils/withColours' +import ComparativeTargets from 'Components/ComparativeTargets' +import './GenericSimulation.css' +import { + nextStepsSelector, + analysisWithDefaultsSelector +} from 'Selectors/analyseSelectors' +import { reduxForm } from 'redux-form' +import PeriodSwitch from 'Components/PeriodSwitch' +import Controls from './Controls' +import situations from './simulateur-rémunération-dirigeant.yaml' + +export default compose( + withColours, + connect(state => ({ + previousAnswers: state.conversationSteps.foldedSteps, + noNextSteps: nextStepsSelector(state).length == 0, + analysis: analysisWithDefaultsSelector(state) + })) +)( + class extends React.Component { + state = { + displayAnswers: false + } + render() { + let { + colours, + noNextSteps, + previousAnswers, + analysis: { controls } + } = this.props + return ( +
Vous avez atteint l'estimation la plus précise.
+ > + )} +