gab-social/app/javascript/gabsocial/features/compose/compose.js
mgabdev 79d77ec088 Fixed issue with quote/reply not canceling on mobile page pop
• Fixed:
- issue with quote/reply not canceling on mobile page pop
2020-08-10 22:01:09 -05:00

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>
)
}
}