2018-02-28 16:45:13 +00:00
|
|
|
import React, { Component } from 'react'
|
|
|
|
//import styles from './Simu.css'
|
|
|
|
import TargetSelection from './TargetSelection'
|
|
|
|
import withColours from './withColours'
|
2018-03-01 18:07:40 +00:00
|
|
|
import Conversation from './conversation/Conversation'
|
2018-02-28 16:45:13 +00:00
|
|
|
|
|
|
|
@withColours
|
|
|
|
export default class extends Component {
|
2018-03-01 18:07:40 +00:00
|
|
|
state = {
|
|
|
|
conversationVisible: false
|
|
|
|
}
|
2018-02-28 16:45:13 +00:00
|
|
|
render() {
|
2018-03-01 18:07:40 +00:00
|
|
|
let { colours } = this.props
|
|
|
|
|
2018-02-28 16:45:13 +00:00
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
{' '}
|
2018-03-01 18:07:40 +00:00
|
|
|
<TargetSelection
|
|
|
|
colours={colours}
|
|
|
|
conversationVisible={this.state.conversationVisible}
|
|
|
|
showConversation={() => this.setState({ conversationVisible: true })}
|
|
|
|
/>
|
|
|
|
{this.state.conversationVisible && (
|
|
|
|
<Conversation textColourOnWhite={colours.textColourOnWhite} />
|
|
|
|
)}
|
2018-02-28 16:45:13 +00:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|