fix: OpenID Connect and Local route rendering

This commit is contained in:
Erik Ziegler committed 2021-07-08 10:29:41 +02:00
1 parent f5ecc753f7
commit 3a53479bb7
9 files changed
+50 -67

No files matched your search

+2 -10
View File
@@ -1,5 +1,5 @@
import React, { useEffect, useState, useRef } from 'react';
import { useParams } from 'react-router';
import { useParams, useLocation } from 'react-router';
import PropTypes from 'prop-types';
// TODO: DicomMetadataStore should be injected?
import { DicomMetadataStore } from '@ohif/core';
@@ -54,7 +54,6 @@ async function defaultRouteInit({
}
export default function ModeRoute({
location,
mode,
dataSourceName,
extensionManager,
@@ -62,6 +61,7 @@ export default function ModeRoute({
hotkeysManager,
}) {
// Parse route params/querystring
const location = useLocation();
const query = useQuery();
const params = useParams();
@@ -287,14 +287,6 @@ export default function ModeRoute({
}
ModeRoute.propTypes = {
// Ref: https://reacttraining.com/react-router/web/api/location
location: PropTypes.shape({
key: PropTypes.string,
pathname: PropTypes.string.isRequired,
search: PropTypes.string.isRequired,
hash: PropTypes.string.isRequired,
//state: PropTypes.object.isRequired,
}),
mode: PropTypes.object.isRequired,
dataSourceName: PropTypes.string,
extensionManager: PropTypes.object,