mon-entreprise/source/components/Simu.js

37 lines
1.1 KiB
JavaScript
Raw Normal View History

import React, { Component } from 'react'
//import styles from './Simu.css'
import TargetSelection from './TargetSelection'
import withColours from './withColours'
import Conversation from './conversation/Conversation'
2018-03-12 09:38:29 +00:00
import ProgressTip from './ProgressTip'
2018-03-14 16:49:27 +00:00
import FoldedSteps from './conversation/FoldedSteps'
@withColours
export default class extends Component {
state = {
2018-03-12 09:38:29 +00:00
conversationVisible: false,
selectingTargets: false
}
render() {
2018-03-12 09:38:29 +00:00
let { colours } = this.props,
{ selectingTargets, conversationVisible } = this.state
return (
<div>
2018-03-14 16:49:27 +00:00
<FoldedSteps />
<TargetSelection
colours={colours}
conversationVisible={this.state.conversationVisible}
showConversation={() => this.setState({ conversationVisible: true })}
2018-03-12 09:38:29 +00:00
selectingTargets={selectingTargets}
setSelectingTargets={() => this.setState({ selectingTargets: true })}
/>
2018-03-12 09:38:29 +00:00
<ProgressTip {...{ selectingTargets, conversationVisible }} />
{this.state.conversationVisible && (
<Conversation textColourOnWhite={colours.textColourOnWhite} />
)}
</div>
)
}
}