Revert "React viewport (#439)" (#487)

This reverts commit b24a502433.
This commit is contained in:
Evren Ozkan authored and GitHub committed 2019-05-27 11:09:11 -04:00
1 parent b24a502433
commit c2eb5f342f
5 files changed
+93 -123

No files matched your search

+13 -13
View File
@@ -1,21 +1,21 @@
import { connect } from 'react-redux'
import { connect } from 'react-redux';
import StudyListWithData from './StudyListWithData.js'
import StudyListWithData from './StudyListWithData.js';
const isActive = a => a.active === true
const isActive = (a) => a.active === true;
const mapStateToProps = state => {
const activeServer = state.servers.servers.find(isActive)
const activeServer = state.servers.servers.find(isActive);
return {
server: activeServer,
user: state.oidc.user,
}
}
return {
server: activeServer,
user: state.oidc.user,
};
};
const ConnectedStudyList = connect(
mapStateToProps,
null
)(StudyListWithData)
mapStateToProps,
null
)(StudyListWithData);
export default ConnectedStudyList
export default ConnectedStudyList;