Pull config from window for now

This commit is contained in:
dannyrb committed 2019-05-01 13:10:44 -04:00
1 parent 94e45b1b65
commit 7f52bade3e
4 files changed
+100 -100

No files matched your search

@@ -1,21 +1,23 @@
import { connect } from 'react-redux';
import { ToolbarSection } from 'react-viewerbase';
import OHIF from 'ohif-core'
import OHIF from 'ohif-core';
const { setToolActive } = OHIF.redux.actions;
const Icons = 'icons.svg';
const Icons = `${window.config.routerBasenameicons}icons.svg`;
const mapStateToProps = state => {
const activeButton = state.tools.buttons.find(tool => tool.active === true);
return {
buttons: [ {
command: 'Rotate',
type: 'tool',
text: 'Rotate',
svgUrl: `${Icons}#3d-rotate`,
active: true
}],
buttons: [
{
command: 'Rotate',
type: 'tool',
text: 'Rotate',
svgUrl: `${Icons}#3d-rotate`,
active: true
}
],
activeCommand: 'Rotate'
};
};