import React, { Component } from 'react'; import { withRouter } from 'react-router'; import { Route, Switch } from 'react-router-dom'; import { OHIF } from 'ohif-core'; import ViewerRouting from "./ViewerRouting.js"; import IHEInvokeImageDisplay from './IHEInvokeImageDisplay.js'; import './App.css'; const reload = () => window.location.reload(); const Studylist = OHIF.studylist.components.StudyList; function setContext(context) { /*Rollbar.configure({ payload: { context } });*/ console.log(context); } class App extends Component { componentDidMount() { // Temporary until the rest of the UI is in React window.router = { history: this.props.history }; this.unlisten = this.props.history.listen((location, action) => { setContext(window.location.pathname); }); } componentWillUnmount() { this.unlisten(); } render() { return ( {/* */}
Sorry, this page does not exist.
} />
); } } export default withRouter(App);