Enlève le bouton recommencer à la fin de la simulation
parent
f545980a61
commit
e61b37cea3
|
@ -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(
|
|||
</T>
|
||||
)}
|
||||
</p>
|
||||
<button className="ui__ small simple button " onClick={resetSimulation}>
|
||||
<T>Recommencer</T>
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
|
|
|
@ -14,7 +14,7 @@ export default connect(state => ({
|
|||
<button
|
||||
className="ui__ small simple button "
|
||||
onClick={() => setShowAnswerModal(true)}>
|
||||
<T>Voir mes réponses</T>
|
||||
<T>Modifier mes réponses</T>
|
||||
</button>
|
||||
)}
|
||||
{showAnswerModal && <Answers onClose={() => setShowAnswerModal(false)} />}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue