chore: remove connect from sidebar
This commit is contained in:
parent
620123f40d
commit
c2f7abb3a0
|
@ -1,17 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import { connect } from 'react-redux';
|
||||
import { SidebarComponent } from '../components/sidebar';
|
||||
|
||||
const mapStateToProps = (state: Object) => ({
|
||||
todos: state.todos,
|
||||
});
|
||||
|
||||
// const mapDispatchToProps = (dispatch: Dispatch) => ({
|
||||
// addTodo: text => dispatch(addTodo(text)),
|
||||
// });
|
||||
|
||||
export const SidebarContainer = connect(
|
||||
mapStateToProps,
|
||||
// mapDispatchToProps,
|
||||
)(SidebarComponent);
|
||||
export const SidebarContainer = SidebarComponent;
|
||||
|
|
Loading…
Reference in New Issue