79d77ec088
• Fixed: - issue with quote/reply not canceling on mobile page pop
29 lines
654 B
JavaScript
29 lines
654 B
JavaScript
import { clearCompose } from '../../actions/compose'
|
|
import ComposeFormContainer from './containers/compose_form_container'
|
|
|
|
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()
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<div className={[_s.default, _s.bgPrimary, _s.borderBottom1PX, _s.borderColorSecondary].join(' ')}>
|
|
<ComposeFormContainer isStandalone />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
}
|