|
|
@ -1,6 +1,7 @@
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
|
import LoadingIndicator from '../../components/loading_indicator';
|
|
|
|
import LoadingIndicator from '../../components/loading_indicator';
|
|
|
|
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
|
|
|
|
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
|
|
|
|
import Column from '../ui/components/column';
|
|
|
|
import Column from '../ui/components/column';
|
|
|
@ -14,7 +15,9 @@ const messages = defineMessages({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
|
|
|
|
statusIds: state.getIn(['status_lists', 'favourites', 'items']),
|
|
|
|
loaded: state.getIn(['status_lists', 'favourites', 'loaded']),
|
|
|
|
loaded: state.getIn(['status_lists', 'favourites', 'loaded']),
|
|
|
|
|
|
|
|
me: state.getIn(['meta', 'me']),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@connect(mapStateToProps)
|
|
|
|
@connect(mapStateToProps)
|
|
|
@ -23,8 +26,10 @@ export default class Favourites extends ImmutablePureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
static propTypes = {
|
|
|
|
dispatch: PropTypes.func.isRequired,
|
|
|
|
dispatch: PropTypes.func.isRequired,
|
|
|
|
|
|
|
|
statusIds: ImmutablePropTypes.list.isRequired,
|
|
|
|
loaded: PropTypes.bool,
|
|
|
|
loaded: PropTypes.bool,
|
|
|
|
intl: PropTypes.object.isRequired,
|
|
|
|
intl: PropTypes.object.isRequired,
|
|
|
|
|
|
|
|
me: PropTypes.number.isRequired,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
componentWillMount () {
|
|
|
|
componentWillMount () {
|
|
|
|