From e61b37cea36c241ce3655a0bb1f8f317fe53931a Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Fri, 30 Aug 2019 16:26:37 +0200 Subject: [PATCH] =?UTF-8?q?Enl=C3=A8ve=20le=20bouton=20recommencer=20?= =?UTF-8?q?=C3=A0=20la=20fin=20de=20la=20simulation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/conversation/Conversation.js | 14 +++----------- source/components/conversation/SeeAnswersButton.js | 2 +- source/locales/en.yaml | 2 +- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/source/components/conversation/Conversation.js b/source/components/conversation/Conversation.js index 42e0547ff..a5ae75d33 100644 --- a/source/components/conversation/Conversation.js +++ b/source/components/conversation/Conversation.js @@ -1,11 +1,8 @@ -import { - goToQuestion, - resetSimulation, - validateStepWithValue -} from 'Actions/actions' +import { goToQuestion, validateStepWithValue } from 'Actions/actions' import { T } from 'Components' import QuickLinks from 'Components/QuickLinks' import { getInputComponent } from 'Engine/generateQuestions' +import { findRuleByDottedName } from 'Engine/rules' import { compose } from 'ramda' import React from 'react' import emoji from 'react-easy-emoji' @@ -19,7 +16,6 @@ import { import * as Animate from 'Ui/animate' import Aide from './Aide' import './conversation.css' -import { findRuleByDottedName } from 'Engine/rules' export default compose( reduxForm({ @@ -33,7 +29,7 @@ export default compose( previousAnswers: state.conversationSteps.foldedSteps, nextSteps: nextStepsSelector(state) }), - { resetSimulation, validateStepWithValue, goToQuestion } + { validateStepWithValue, goToQuestion } ) )(function Conversation({ nextSteps, @@ -41,7 +37,6 @@ export default compose( currentQuestion, customEndMessages, flatRules, - resetSimulation, goToQuestion, validateStepWithValue }) { @@ -101,9 +96,6 @@ export default compose( )}

- ) }) diff --git a/source/components/conversation/SeeAnswersButton.js b/source/components/conversation/SeeAnswersButton.js index 66624febb..077349c6d 100644 --- a/source/components/conversation/SeeAnswersButton.js +++ b/source/components/conversation/SeeAnswersButton.js @@ -14,7 +14,7 @@ export default connect(state => ({ )} {showAnswerModal && setShowAnswerModal(false)} />} diff --git a/source/locales/en.yaml b/source/locales/en.yaml index 1d8ad2ab2..2c9026210 100644 --- a/source/locales/en.yaml +++ b/source/locales/en.yaml @@ -127,7 +127,7 @@ quicklinks: Autres questions: Other questions Mes réponses: My answers Prochaines questions: Next questions -Voir mes réponses: See my answers +Modifier mes réponses: Change my answers simulation-end: title: No more questions left! text: You have reached the most accurate estimate.