Fixed issue with quote/reply not canceling on mobile page pop
• Fixed: - issue with quote/reply not canceling on mobile page pop
This commit is contained in:
parent
5f3aef6b3b
commit
79d77ec088
@ -1,6 +1,21 @@
|
|||||||
|
import { clearCompose } from '../../actions/compose'
|
||||||
import ComposeFormContainer from './containers/compose_form_container'
|
import ComposeFormContainer from './containers/compose_form_container'
|
||||||
|
|
||||||
export default class Compose extends PureComponent {
|
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 () {
|
render () {
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user