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.
21 lines
539 B
21 lines
539 B
8 years ago
|
import { connect } from 'react-redux';
|
||
|
import { makeGetAccount } from '../../../selectors';
|
||
|
import Account from '../components/account';
|
||
|
|
||
|
const makeMapStateToProps = () => {
|
||
|
const getAccount = makeGetAccount();
|
||
|
|
||
|
const mapStateToProps = (state, props) => ({
|
||
|
account: getAccount(state, props.id),
|
||
|
me: state.getIn(['timelines', 'me'])
|
||
|
});
|
||
|
|
||
|
return mapStateToProps;
|
||
|
};
|
||
|
|
||
|
const mapDispatchToProps = (dispatch) => ({
|
||
|
//
|
||
|
});
|
||
|
|
||
|
export default connect(makeMapStateToProps, mapDispatchToProps)(Account);
|