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