Improve how account detailed view looks, load account's statuses
This commit is contained in:
parent
dafcb02153
commit
0967961de7
9 changed files with 208 additions and 76 deletions
|
@ -2,18 +2,7 @@ import { connect } from 'react-redux';
|
|||
import StatusList from '../components/status_list';
|
||||
import { replyCompose } from '../actions/compose';
|
||||
import { reblog, favourite } from '../actions/interactions';
|
||||
|
||||
function selectStatus(state, id) {
|
||||
let status = state.getIn(['timelines', 'statuses', id]);
|
||||
|
||||
status = status.set('account', state.getIn(['timelines', 'accounts', status.get('account')]));
|
||||
|
||||
if (status.get('reblog') !== null) {
|
||||
status = status.set('reblog', selectStatus(state, status.get('reblog')));
|
||||
}
|
||||
|
||||
return status;
|
||||
};
|
||||
import { selectStatus } from '../reducers/timelines';
|
||||
|
||||
const mapStateToProps = function (state, props) {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue