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.
 
 
 
 

30 lines
791 B

  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. }