mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 14:13:42 +01:00
b254e6ca5f
* Refactor initial state: "me" * remove "me" from reducers/meta.js
11 lines
300 B
JavaScript
11 lines
300 B
JavaScript
import { connect } from 'react-redux';
|
|
import NavigationBar from '../components/navigation_bar';
|
|
import { me } from '../../../initial_state';
|
|
|
|
const mapStateToProps = state => {
|
|
return {
|
|
account: state.getIn(['accounts', me]),
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(NavigationBar);
|