add alias for state

This commit is contained in:
dannyrb 2020-05-20 14:42:22 -04:00
parent 913f9589e5
commit 64f9c4a387
2 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@ module.exports = (env, argv, { SRC_DIR, DIST_DIR }) => {
), ),
'@hooks': path.resolve(__dirname, '../platform/viewer/src/hooks'), '@hooks': path.resolve(__dirname, '../platform/viewer/src/hooks'),
'@routes': path.resolve(__dirname, '../platform/viewer/src/routes'), '@routes': path.resolve(__dirname, '../platform/viewer/src/routes'),
'@state': path.resolve(__dirname, '../platform/viewer/src/state'),
}, },
// Which directories to search when resolving modules // Which directories to search when resolving modules
modules: [ modules: [

View File

@ -5,7 +5,7 @@ import { BrowserRouter, HashRouter } from 'react-router-dom';
import { ThemeWrapper } from '@ohif/ui'; import { ThemeWrapper } from '@ohif/ui';
// Viewer Project // Viewer Project
// TODO: Should this influence study list? // TODO: Should this influence study list?
import { appConfigContext } from './state/appConfig.context'; import { appConfigContext } from '@state/appConfig.context';
import { useAppConfig } from './hooks/useAppConfig'; import { useAppConfig } from './hooks/useAppConfig';
import createRoutes from './routes'; import createRoutes from './routes';
import appInit from './appInit.js'; import appInit from './appInit.js';