Make sure WorkList has access to AppConfig

This commit is contained in:
dannyrb committed 2020-06-16 10:20:03 -04:00
1 parent 6e65e7eaf5
commit c3ecbadbc2
7 files changed
+39 -38

No files matched your search

@@ -1,9 +1,9 @@
/* eslint-disable react/jsx-props-no-spreading */
import React, { useContext, useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { MODULE_TYPES } from '@ohif/core';
//
import { appConfigContext } from '../state/appConfig.context';
import { useAppConfig } from '@state';
import { extensionManager } from '../App.jsx';
/**
@@ -15,7 +15,7 @@ import { extensionManager } from '../App.jsx';
* @param {function} props.children - Layout Template React Component
*/
function DataSourceWrapper(props) {
const { appConfig } = useContext(appConfigContext);
const [appConfig] = useAppConfig();
const { children: LayoutTemplate, history, ...rest } = props;
const queryFilterValues = _getQueryFilterValues(history.location.search);