React viewport (#439)

Implementing hotkeys actions
This commit is contained in:
Biharck Araujo authored and GitHub committed 2019-05-27 08:22:33 -03:00
1 parent e830d0f41e
commit b24a502433
5 files changed
+123 -93

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