From c2f7abb3a084fe0ebde9948aa80d115361f51459 Mon Sep 17 00:00:00 2001 From: George Lima Date: Thu, 13 Dec 2018 17:20:38 -0300 Subject: [PATCH] chore: remove connect from sidebar --- app/containers/sidebar.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/containers/sidebar.js b/app/containers/sidebar.js index d4dbc21..7fdd70b 100644 --- a/app/containers/sidebar.js +++ b/app/containers/sidebar.js @@ -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;