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-22 21:16:06 -07:00
parent 042bd35d79
commit f1ac3d2f64
38 changed files with 67 additions and 92 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import * as Avatar from '../../../Avatar';
const sdk = require("../../../index");
const dispatcher = require("../../../dispatcher");
import * as sdk from "../../../index";
import dis from "../../../dispatcher";
module.exports = createReactClass({
displayName: 'MemberAvatar',