logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

upload_form_container.js (273B)


  1. import { connect } from 'react-redux';
  2. import UploadForm from '../components/upload_form';
  3. const mapStateToProps = state => ({
  4. mediaIds: state.getIn(['compose', 'media_attachments']).map(item => item.get('id')),
  5. });
  6. export default connect(mapStateToProps)(UploadForm);