logo

mastofe

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

upload_form.js (791B)


  1. import React from 'react';
  2. import ImmutablePropTypes from 'react-immutable-proptypes';
  3. import UploadProgressContainer from '../containers/upload_progress_container';
  4. import ImmutablePureComponent from 'react-immutable-pure-component';
  5. import UploadContainer from '../containers/upload_container';
  6. export default class UploadForm extends ImmutablePureComponent {
  7. static propTypes = {
  8. mediaIds: ImmutablePropTypes.list.isRequired,
  9. };
  10. render () {
  11. const { mediaIds } = this.props;
  12. return (
  13. <div className='compose-form__upload-wrapper'>
  14. <UploadProgressContainer />
  15. <div className='compose-form__uploads-wrapper'>
  16. {mediaIds.map(id => (
  17. <UploadContainer id={id} key={id} />
  18. ))}
  19. </div>
  20. </div>
  21. );
  22. }
  23. }