The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
449 B

  1. import { connect } from 'react-redux';
  2. import UploadForm from '../components/upload_form';
  3. import { undoUploadCompose } from '../../../actions/compose';
  4. const mapStateToProps = state => ({
  5. media: state.getIn(['compose', 'media_attachments']),
  6. });
  7. const mapDispatchToProps = dispatch => ({
  8. onRemoveFile (media_id) {
  9. dispatch(undoUploadCompose(media_id));
  10. },
  11. });
  12. export default connect(mapStateToProps, mapDispatchToProps)(UploadForm);