Progress
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
import { Fragment } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { List as ImmutableList, fromJS } from 'immutable';
|
||||
import { IntlProvider, addLocaleData } from 'react-intl';
|
||||
import { getLocale } from '../locales';
|
||||
import Video from '../features/video';
|
||||
import Card from '../features/status/components/card';
|
||||
import Poll from '../components/poll';
|
||||
import MediaGallery from '../components/media_gallery';
|
||||
import ModalRoot from '../components/modal/modal_root';
|
||||
import MediaModal from '../components/modal/media_modal';
|
||||
import { Fragment } from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import { List as ImmutableList, fromJS } from 'immutable'
|
||||
import { IntlProvider, addLocaleData } from 'react-intl'
|
||||
import { getLocale } from '../locales'
|
||||
import Video from '../components/video'
|
||||
import StatusCard from '../components/status_card'
|
||||
import Poll from '../components/poll'
|
||||
import MediaGallery from '../components/media_gallery'
|
||||
import ModalRoot from '../components/modal/modal_root'
|
||||
import MediaModal from '../components/modal/media_modal'
|
||||
|
||||
const { localeData, messages } = getLocale();
|
||||
addLocaleData(localeData);
|
||||
|
||||
const MEDIA_COMPONENTS = { MediaGallery, Video, Card, Poll };
|
||||
const MEDIA_COMPONENTS = { MediaGallery, Video, StatusCard, Poll };
|
||||
|
||||
export default class MediaContainer extends PureComponent {
|
||||
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { load } from '../actions/status_revision_list'
|
||||
import StatusRevisionList from '../components/status_revision_list'
|
||||
|
||||
class StatusRevisionListContainer extends ImmutablePureComponent {
|
||||
componentDidMount() {
|
||||
this.props.load(this.props.id)
|
||||
}
|
||||
|
||||
render() {
|
||||
return <StatusRevisionList {...this.props} />
|
||||
}
|
||||
}
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
loading: state.getIn(['status_revision_list', 'loading']),
|
||||
error: state.getIn(['status_revision_list', 'error']),
|
||||
data: state.getIn(['status_revision_list', 'data']),
|
||||
})
|
||||
|
||||
const mapDispatchToProps = {
|
||||
load
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(StatusRevisionListContainer)
|
||||
Reference in New Issue
Block a user