diff --git a/source/components/GenericSimulation.js b/source/components/GenericSimulation.js index b7af2f6ad..cae244d45 100644 --- a/source/components/GenericSimulation.js +++ b/source/components/GenericSimulation.js @@ -1,6 +1,6 @@ import React from 'react' import { connect } from 'react-redux' -import { isEmpty } from 'ramda' +import { isEmpty, compose } from 'ramda' import Answers from 'Components/AnswerList' import Conversation from 'Components/conversation/Conversation' import withColours from 'Components/utils/withColours' @@ -8,48 +8,56 @@ import Targets from 'Components/Targets' import './GenericSimulation.css' import { nextStepsSelector } from 'Selectors/analyseSelectors' -@withColours -@connect(state => ({ - previousAnswers: state.conversationSteps.foldedSteps, - noNextSteps: nextStepsSelector(state).length == 0 -})) -export default class YO extends React.Component { - state = { - displayAnswers: false - } - render() { - let { colours, noNextSteps, previousAnswers } = this.props - console.log(noNextSteps) - return ( -
Vous avez atteint l'estimation la plus précise.
- > - )} -Vous avez atteint l'estimation la plus précise.
+ > + )} +