1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 01:45:03 +00:00
mon-entreprise/source/components/Simu.js
Johan Girod f97379b26b Enlève les décimales dans la répartition de la distribution
Et déplace le texte de prévention directement dans la fiche de paie
2018-06-18 11:54:32 +02:00

42 lines
1.2 KiB
JavaScript

import React, { Component } from 'react'
import { connect } from 'react-redux'
import { noUserInputSelector } from 'Selectors/analyseSelectors'
import Conversation from './conversation/Conversation'
import FoldedSteps, { GoToAnswers } from './conversation/FoldedSteps'
import GoToExplanations from './GoToExplanations'
import ProgressTip from './ProgressTip'
import ResultView from './ResultView/ResultView'
import './Simu.css'
import Sondage from './Sondage'
import TargetSelection from './TargetSelection'
import withColours from './withColours'
@withColours
@connect(state => ({
noUserInput: noUserInputSelector(state),
conversationStarted: state.conversationStarted
}))
export default class Simu extends Component {
render() {
let { colours, conversationStarted, noUserInput } = this.props
return (
<div id="simu">
<div id="focusZone">
<FoldedSteps />
<GoToAnswers />
<TargetSelection colours={colours} />
{conversationStarted && (
<>
<ProgressTip />
<Conversation textColourOnWhite={colours.textColourOnWhite} />
</>
)}
{!noUserInput && <GoToExplanations />}
</div>
{!noUserInput && <ResultView />}
<Sondage />
</div>
)
}
}