Fix broken UI package build (#1990)

* Use path instead of alias

* Add missing pacakges

* Use path in viewers

* Use path in contextProviders

* Add base to config

* Add conditionals for window

* Copy config to avoid breaking build

* Update and lock versions

* Update lock file

* Remove scaling config

* Fix broken versions of react date

* Fix broken dev
This commit is contained in:
Igor Octaviano authored and GitHub committed 2020-08-14 14:25:08 -04:00
1 parent e04f74499f
commit ef163cd702
93 files changed
+3244 -297

No files matched your search

@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { ViewportActionBar, Notification, Button } from '@ohif/ui';
import { ViewportActionBar, Notification, Button } from '../';
const Viewport = ({ viewportIndex, onSeriesChange, studyData, children }) => {
return (
@@ -33,7 +33,7 @@ const Viewport = ({ viewportIndex, onSeriesChange, studyData, children }) => {
},
]}
onSubmit={value => {
window.alert(value);
if (typeof window !== 'undefined') window.alert(value);
}}
/>
</div>
@@ -5,7 +5,7 @@ route: components/viewport
---
import { Playground, Props } from 'docz';
import { Viewport } from '@ohif/ui';
import { Viewport } from '../';
# Viewport