From b29433c2e085bee4f62360dc0195fd0a3fb56d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 7 Feb 2017 15:49:07 +0000 Subject: [PATCH] fix projects unconected test --- frontend/src/components/people-list/index.js | 1 - frontend/src/containers/project/people.js | 13 +++++-------- frontend/src/containers/projects/index.js | 14 ++++---------- 3 files changed, 9 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/people-list/index.js b/frontend/src/components/people-list/index.js index a2b71209..6c01d537 100644 --- a/frontend/src/components/people-list/index.js +++ b/frontend/src/components/people-list/index.js @@ -14,7 +14,6 @@ const buttonStyle = { }; const People = (props) => { - const { UI = {}, handleToggle, diff --git a/frontend/src/containers/project/people.js b/frontend/src/containers/project/people.js index d2f59cba..2717b740 100644 --- a/frontend/src/containers/project/people.js +++ b/frontend/src/containers/project/people.js @@ -25,14 +25,11 @@ const { projectRemoveMember, } = actions; -const People = (props) => { - - return ( -
- -
- ); -}; +const People = (props) => ( +
+ +
+); const mapStateToProps = (state, { params = {} diff --git a/frontend/src/containers/projects/index.js b/frontend/src/containers/projects/index.js index 37150f9e..e39d5be1 100644 --- a/frontend/src/containers/projects/index.js +++ b/frontend/src/containers/projects/index.js @@ -26,8 +26,7 @@ const { const Projects = (props) => { const { org = {}, - projects = [], - router + projects = [] } = props; const empty = projects.length ? null : ( @@ -45,15 +44,12 @@ const Projects = (props) => { )); - const onCreateProject = (evt) => - router.transitionTo(`/${org.id}/new-project`); - return (
{empty} - @@ -69,8 +65,7 @@ const Projects = (props) => { Projects.propTypes = { org: PropTypes.org, - projects: React.PropTypes.arrayOf(PropTypes.project), - router: React.PropTypes.object + projects: React.PropTypes.arrayOf(PropTypes.project) }; const mapStateToProps = (state, { @@ -79,8 +74,7 @@ const mapStateToProps = (state, { } }) => ({ org: orgByIdSelector(match.params.org)(state), - projects: projectsByOrgIdSelector(match.params.org)(state), - router: state.app.router + projects: projectsByOrgIdSelector(match.params.org)(state) }); module.exports = connect(