fix(hotkeys): Fix the issues with hotkeys (#488)

* wip viewport

* refactoring to do not use dispatch from window

* fixing server active testing

* fix(dependencies): Bump ohif-core to 0.5.5
This commit is contained in:
Evren Ozkan authored and GitHub committed 2019-05-27 11:31:39 -04:00
1 parent c2eb5f342f
commit 3bae254a6f
7 files changed
+128 -98

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