2020-08-11 04:01:09 +01:00
|
|
|
import { clearCompose } from '../../actions/compose'
|
2020-05-15 03:31:24 +01:00
|
|
|
import ComposeFormContainer from './containers/compose_form_container'
|
2019-08-09 17:06:27 +01:00
|
|
|
|
2020-08-11 04:01:09 +01:00
|
|
|
const mapDispatchToProps = (dispatch) => ({
|
|
|
|
onClearCompose:() => dispatch(clearCompose())
|
|
|
|
})
|
|
|
|
|
|
|
|
export default
|
|
|
|
@connect(null, mapDispatchToProps)
|
|
|
|
class Compose extends PureComponent {
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
onClearCompose: PropTypes.func.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
this.props.onClearCompose()
|
|
|
|
}
|
2019-08-09 17:06:27 +01:00
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
2020-05-15 03:31:24 +01:00
|
|
|
<div className={[_s.default, _s.bgPrimary, _s.borderBottom1PX, _s.borderColorSecondary].join(' ')}>
|
2020-05-15 04:17:31 +01:00
|
|
|
<ComposeFormContainer isStandalone />
|
2019-08-09 17:06:27 +01:00
|
|
|
</div>
|
2020-05-15 03:31:24 +01:00
|
|
|
)
|
2019-08-09 17:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|