-More!
This commit is contained in:
16
app/components/AppHeader/HeaderContentLeft.container.js
Normal file
16
app/components/AppHeader/HeaderContentLeft.container.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { hasMultipleEvents } from '../selectors/events.js';
|
||||
|
||||
import HeaderContentLeft from './HeaderContentLeft.js';
|
||||
|
||||
const matchStateToProps = (state, ownProps) => {
|
||||
const { routeName } = ownProps.navigation.state;
|
||||
|
||||
return {
|
||||
activeRoute: routeName,
|
||||
hasMultipleEvents: hasMultipleEvents(state),
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(matchStateToProps, null)(HeaderContentLeft);
|
||||
Reference in New Issue
Block a user