diff --git a/platform/viewer/src/App.js b/platform/viewer/src/App.js index 6819838ff29..1a196db267e 100644 --- a/platform/viewer/src/App.js +++ b/platform/viewer/src/App.js @@ -86,6 +86,7 @@ class App extends Component { static defaultProps = { config: { + showStudyList: true, whiteLabelling: {}, oidc: [], extensions: [], @@ -102,6 +103,7 @@ class App extends Component { const { config, defaultExtensions } = props; const appDefaultConfig = { + showStudyList: true, cornerstoneExtensionConfig: {}, extensions: [], routerBasename: '/', diff --git a/platform/viewer/src/components/Header/Header.js b/platform/viewer/src/components/Header/Header.js index 8fa2a69374e..19b7c76c044 100644 --- a/platform/viewer/src/components/Header/Header.js +++ b/platform/viewer/src/components/Header/Header.js @@ -1,30 +1,29 @@ import React, { useState, useEffect } from 'react'; import { Link, withRouter } from 'react-router-dom'; import { withTranslation } from 'react-i18next'; - import PropTypes from 'prop-types'; - +import classNames from 'classnames'; import { Dropdown, AboutContent, withModal } from '@ohif/ui'; - +// import { UserPreferences } from './../UserPreferences'; import OHIFLogo from '../OHIFLogo/OHIFLogo.js'; import './Header.css'; -// Context -import AppContext from './../../context/AppContext'; - function Header(props) { const { t, user, userManager, modal: { show }, - home, + useLargeLogo, + linkPath, + linkText, location, children, } = props; const [options, setOptions] = useState([]); + const hasLink = linkText && linkPath; useEffect(() => { const optionsValue = [ @@ -61,15 +60,12 @@ function Header(props) { setOptions(optionsValue); }, [setOptions, show, t, user, userManager]); - const { appConfig = {} } = AppContext; - const showStudyList = - appConfig.showStudyList !== undefined ? appConfig.showStudyList : true; - - // ANTD -- Hamburger, Drawer, Menu return ( <>