Switch to createReactClass: views/rooms and test/components. React 16 :D

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-09-06 15:04:46 +01:00
parent 4876f4c469
commit 70ff2bc9cd
32 changed files with 87 additions and 98 deletions

View file

@ -29,6 +29,7 @@ limitations under the License.
*/
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import classNames from 'classnames';
import { MatrixClient } from 'matrix-js-sdk';
import dis from '../../../dispatcher';
@ -48,7 +49,7 @@ import E2EIcon from "./E2EIcon";
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
import MatrixClientPeg from "../../../MatrixClientPeg";
module.exports = React.createClass({
module.exports = createReactClass({
displayName: 'MemberInfo',
propTypes: {