gab-social/app/javascript/gabsocial/features/compose/compose.js

19 lines
458 B
JavaScript
Raw Normal View History

import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { clearCompose } from '../../actions/compose'
2020-05-15 03:31:24 +01:00
import ComposeFormContainer from './containers/compose_form_container'
class Compose extends React.PureComponent {
componentWillUnmount() {
this.props.dispatch(clearCompose())
}
render () {
2020-12-16 00:31:30 +00:00
return <ComposeFormContainer formLocation='standalone' />
}
}
export default connect()(Compose)