BUG: Fixed React/ReactDOM imports

pull/757/head
Piero Toffanin 2019-12-03 22:59:44 -05:00
rodzic aa411e9935
commit 92ac792b7b
7 zmienionych plików z 14 dodań i 13 usunięć

Wyświetl plik

@ -80,8 +80,8 @@ module.exports = {
"SystemJS": "SystemJS",
"PluginsAPI": "PluginsAPI",
"leaflet": "leaflet",
"react-dom": "ReactDOM",
"react": "React"
"ReactDOM": "ReactDOM",
"React": "React"
},
watchOptions: {

Wyświetl plik

@ -1,6 +1,6 @@
import L from 'leaflet';
import ReactDOM from 'react-dom';
import React from 'react';
import ReactDOM from 'react-dom';
import L from 'leaflet';
import PropTypes from 'prop-types';
import '../css/LayersControl.scss';
import LayersControlPanel from './LayersControlPanel';

Wyświetl plik

@ -3,7 +3,8 @@ module.exports = {
moduleNameMapper: {
"^.*\\.s?css$": "<rootDir>/app/static/app/js/tests/mocks/empty.scss.js",
"jquery": "<rootDir>/app/static/app/js/vendor/jquery-1.11.2.min.js",
"SystemJS": "<rootDir>/app/static/app/js/tests/mocks/system.js"
"SystemJS": "<rootDir>/app/static/app/js/tests/mocks/system.js",
"ReactDOM": "react-dom"
},
setupFiles: ["<rootDir>/app/static/app/js/tests/setup/shims.js",
"<rootDir>/app/static/app/js/tests/setup/setupTests.js",

Wyświetl plik

@ -1,6 +1,6 @@
import L from 'leaflet';
import ReactDOM from 'react-dom';
import React from 'react';
import ReactDOM from 'ReactDOM';
import React from 'React';
import PropTypes from 'prop-types';
import './Contours.scss';
import ContoursPanel from './ContoursPanel';

Wyświetl plik

@ -1,6 +1,6 @@
import L from 'leaflet';
import ReactDOM from 'react-dom';
import React from 'react';
import ReactDOM from 'ReactDOM';
import React from 'React';
import PropTypes from 'prop-types';
import './ElevationMap.scss';
import ElevationMapPanel from './ElevationMapPanel';

Wyświetl plik

@ -4,8 +4,8 @@ import 'leaflet-measure-ex/dist/leaflet-measure';
import 'leaflet-measure-ex/dist/leaflet-measure.css';
import MeasurePopup from './MeasurePopup';
import Utils from 'webodm/classes/Utils';
import ReactDOM from 'react-dom';
import React from 'react';
import ReactDOM from 'ReactDOM';
import React from 'React';
import $ from 'jquery';
export default class App{

Wyświetl plik

@ -89,8 +89,8 @@ module.exports = {
// on the global let jQuery
"jquery": "jQuery",
"SystemJS": "SystemJS",
"react": "React",
"react-dom": "ReactDOM"
"React": "React",
"ReactDOM": "ReactDOM"
},
watchOptions: {