equal
deleted
inserted
replaced
1 import PropTypes from 'prop-types'; |
1 import PropTypes from 'prop-types'; |
2 import React, { Component } from 'react'; |
2 import React, { Component } from 'react'; |
3 import { connect } from 'react-redux'; |
3 import { connect } from 'react-redux'; |
|
4 import { withRouter } from 'react-router'; |
4 import { bindActionCreators } from 'redux'; |
5 import { bindActionCreators } from 'redux'; |
5 // import logo from './logo.svg'; |
6 // import logo from './logo.svg'; |
6 import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; |
7 import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; |
7 import * as authActions from '../actions/authActions'; |
8 import * as authActions from '../actions/authActions'; |
8 |
9 |
97 return { |
98 return { |
98 authActions: bindActionCreators(authActions, dispatch), |
99 authActions: bindActionCreators(authActions, dispatch), |
99 } |
100 } |
100 } |
101 } |
101 |
102 |
102 export default connect(mapStateToProps, mapDispatchToProps)(AppNavbar); |
103 export default connect(mapStateToProps, mapDispatchToProps)(withRouter(AppNavbar)); |