Skip to content

Instantly share code, notes, and snippets.

@4knort
Created November 22, 2016 20:53
Show Gist options
  • Save 4knort/c023ccb4b4cc8eecbf37462cafd21166 to your computer and use it in GitHub Desktop.
Save 4knort/c023ccb4b4cc8eecbf37462cafd21166 to your computer and use it in GitHub Desktop.
const App = ({ modifiedList, activeUser }) => {
if(!Array.isArray(modifiedList)) {
return null
}
return (
<div className="container-fluid">
<SearchBarContainer />
<ToolBarContainer />
<div className="row">
<ActiveUser user={modifiedList[activeUser]} />
<UserList />
</div>
</div>
);
}
export default connect(state => ({
modifiedList: state.list.modifiedList,
activeUser: state.activeUser.activeUser,
}))(App)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment