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,14 +1,13 @@
/** REACT DATES */
import 'react-dates/initialize';
import 'react-dates/lib/css/_datepicker.css';
import { DateRangePicker, isInclusivelyBeforeDay } from 'react-dates';
import './DateRange.css';
import React, { useState, useCallback } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
/** REACT DATES */
import { DateRangePicker, isInclusivelyBeforeDay } from 'react-dates';
import 'react-dates/initialize';
import 'react-dates/lib/css/_datepicker.css';
import './DateRange.css';
const today = moment();
const lastWeek = moment().subtract(7, 'day');
const lastMonth = moment().subtract(1, 'month');
@@ -90,7 +89,7 @@ const DateRange = (props) => {
onYearSelect(month, event.target.value);
};
const handleOnBlur = () => {};
const handleOnBlur = () => { };
return (
<div className="flex justify-center">
@@ -6,7 +6,7 @@ route: components/date-range
import { useState } from 'react';
import { Playground, Props } from 'docz';
import { DateRange } from '@ohif/ui';
import { DateRange } from '../';
# Date Range