Progress
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import LoadingBar from 'react-redux-loading-bar';
|
||||
import LoadingBar from 'react-redux-loading-bar'
|
||||
|
||||
const mapStateToProps = (state, ownProps) => ({
|
||||
loading: state.get('loadingBar')[ownProps.scope || 'default'],
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps)(LoadingBar.WrappedComponent);
|
||||
export default connect(mapStateToProps)(LoadingBar.WrappedComponent)
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
import { closeModal } from '../actions/modal';
|
||||
import { cancelReplyCompose } from '../actions/compose';
|
||||
import ModalRoot from '../components/modal/modal_root';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
type: state.get('modal').modalType,
|
||||
props: state.get('modal').modalProps,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
onClose (optionalType) {
|
||||
if (optionalType === 'COMPOSE') {
|
||||
dispatch(cancelReplyCompose());
|
||||
}
|
||||
|
||||
dispatch(closeModal());
|
||||
},
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(ModalRoot);
|
||||
@@ -1,25 +1,25 @@
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||
import { load } from '../actions/status_revision_list';
|
||||
import StatusRevisionList from '../components/status_revision_list';
|
||||
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);
|
||||
}
|
||||
componentDidMount() {
|
||||
this.props.load(this.props.id)
|
||||
}
|
||||
|
||||
render() {
|
||||
return <StatusRevisionList {...this.props} />;
|
||||
}
|
||||
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']),
|
||||
});
|
||||
loading: state.getIn(['status_revision_list', 'loading']),
|
||||
error: state.getIn(['status_revision_list', 'error']),
|
||||
data: state.getIn(['status_revision_list', 'data']),
|
||||
})
|
||||
|
||||
const mapDispatchToProps = {
|
||||
load
|
||||
};
|
||||
load
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(StatusRevisionListContainer);
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(StatusRevisionListContainer)
|
||||
@@ -8,7 +8,7 @@ import { hydrateStore } from '../actions/store';
|
||||
import initialState from '../initial_state';
|
||||
import PublicTimeline from '../features/standalone/public_timeline';
|
||||
import HashtagTimeline from '../features/standalone/hashtag_timeline';
|
||||
import ModalContainer from './modal_container';
|
||||
import ModalRoot from '../components/modal/modal_root'
|
||||
|
||||
const { localeData, messages } = getLocale();
|
||||
addLocaleData(localeData);
|
||||
|
||||
Reference in New Issue
Block a user