Fix navicon
This commit is contained in:
parent
a084e6d0af
commit
fa9c5a9c16
4 changed files with 42 additions and 45 deletions
|
@ -1,4 +1,3 @@
|
|||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { createStructuredSelector } from 'reselect';
|
||||
import App from '../components/App';
|
||||
|
@ -17,13 +16,6 @@ const mapState = createStructuredSelector({
|
|||
tab: getSelectedTab
|
||||
});
|
||||
|
||||
const mapDispatch = (dispatch, props) => ({
|
||||
onClick: () => {
|
||||
if (props.showTabList) {
|
||||
dispatch(hideMenu());
|
||||
}
|
||||
},
|
||||
...bindActionCreators({ push, select }, dispatch)
|
||||
});
|
||||
const mapDispatch = { push, select, hideMenu };
|
||||
|
||||
export default connect(mapState, mapDispatch)(App);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue