Convert imports to ES6 from CommonJS

This is needed because `require()` means something different in webpack - it ends up importing the module as something we didn't expect (and is occasionally async)
This commit is contained in:
Travis Ralston 2019-12-20 14:41:07 -07:00
parent 042bd35d79
commit f1ac3d2f64
38 changed files with 67 additions and 92 deletions

View file

@ -18,17 +18,14 @@ limitations under the License.
*/
import ReplyThread from "../elements/ReplyThread";
import React, {createRef} from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
const classNames = require("classnames");
import classNames from "classnames";
import { _t, _td } from '../../../languageHandler';
import * as TextForEvent from "../../../TextForEvent";
const Modal = require('../../../Modal');
const sdk = require('../../../index');
import Modal from "../../../Modal";
import * as sdk from "../../../index";
import dis from '../../../dispatcher';
import SettingsStore from "../../../settings/SettingsStore";
import {EventStatus, MatrixClient} from 'matrix-js-sdk';