@@ -20,6 +20,7 @@ import Header from './components/Header'
2020import InfoPage from './components/InfoPage'
2121import MemoryFooter from './components/MemoryFooter'
2222import Worklist from './components/Worklist'
23+ import { SettingsProvider } from './contexts/SettingsContext'
2324import { ValidationProvider } from './contexts/ValidationContext'
2425import DicomWebManager from './DicomWebManager'
2526import { StorageClasses } from './data/uids'
@@ -564,57 +565,61 @@ class App extends React.Component<AppProps, AppState> {
564565 < Route
565566 path = "/studies/:studyInstanceUID/*"
566567 element = {
567- < Layout style = { layoutStyle } >
568- < Header
569- app = { appInfo }
570- user = { this . state . user }
571- showWorklistButton = { enableWorklist }
572- onServerSelection = { this . handleServerSelection }
573- onUserLogout = { isLogoutPossible ? onLogout : undefined }
574- showServerSelectionButton = { enableServerSelection }
575- clients = { this . state . clients }
576- defaultClients = { this . state . defaultClients }
577- />
578- < Layout . Content style = { layoutContentStyle } >
579- < ParametrizedCaseViewer
580- clients = { this . state . clients }
581- user = { this . state . user }
582- config = { this . props . config }
568+ < SettingsProvider >
569+ < Layout style = { layoutStyle } >
570+ < Header
583571 app = { appInfo }
572+ user = { this . state . user }
573+ showWorklistButton = { enableWorklist }
574+ onServerSelection = { this . handleServerSelection }
575+ onUserLogout = { isLogoutPossible ? onLogout : undefined }
576+ showServerSelectionButton = { enableServerSelection }
577+ clients = { this . state . clients }
578+ defaultClients = { this . state . defaultClients }
584579 />
585- </ Layout . Content >
586- { enableMemoryMonitoring && (
587- < MemoryFooter enabled = { enableMemoryMonitoring } />
588- ) }
589- </ Layout >
580+ < Layout . Content style = { layoutContentStyle } >
581+ < ParametrizedCaseViewer
582+ clients = { this . state . clients }
583+ user = { this . state . user }
584+ config = { this . props . config }
585+ app = { appInfo }
586+ />
587+ </ Layout . Content >
588+ { enableMemoryMonitoring && (
589+ < MemoryFooter enabled = { enableMemoryMonitoring } />
590+ ) }
591+ </ Layout >
592+ </ SettingsProvider >
590593 }
591594 />
592595 < Route
593596 path = "/projects/:project/locations/:location/datasets/:dataset/dicomStores/:dicomStore/study/:studyInstanceUID/*"
594597 element = {
595- < Layout style = { layoutStyle } >
596- < Header
597- app = { appInfo }
598- user = { this . state . user }
599- showWorklistButton = { enableWorklist }
600- onServerSelection = { this . handleServerSelection }
601- onUserLogout = { isLogoutPossible ? onLogout : undefined }
602- showServerSelectionButton = { enableServerSelection }
603- clients = { this . state . clients }
604- defaultClients = { this . state . defaultClients }
605- />
606- < Layout . Content style = { layoutContentStyle } >
607- < ParametrizedCaseViewer
608- clients = { this . state . clients }
609- user = { this . state . user }
610- config = { this . props . config }
598+ < SettingsProvider >
599+ < Layout style = { layoutStyle } >
600+ < Header
611601 app = { appInfo }
602+ user = { this . state . user }
603+ showWorklistButton = { enableWorklist }
604+ onServerSelection = { this . handleServerSelection }
605+ onUserLogout = { isLogoutPossible ? onLogout : undefined }
606+ showServerSelectionButton = { enableServerSelection }
607+ clients = { this . state . clients }
608+ defaultClients = { this . state . defaultClients }
612609 />
613- </ Layout . Content >
614- { enableMemoryMonitoring && (
615- < MemoryFooter enabled = { enableMemoryMonitoring } />
616- ) }
617- </ Layout >
610+ < Layout . Content style = { layoutContentStyle } >
611+ < ParametrizedCaseViewer
612+ clients = { this . state . clients }
613+ user = { this . state . user }
614+ config = { this . props . config }
615+ app = { appInfo }
616+ />
617+ </ Layout . Content >
618+ { enableMemoryMonitoring && (
619+ < MemoryFooter enabled = { enableMemoryMonitoring } />
620+ ) }
621+ </ Layout >
622+ </ SettingsProvider >
618623 }
619624 />
620625 < Route
0 commit comments