Replace React.PropTypes with usage of the prop-types
package
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
06bb18bda5
commit
1087e04bb5
16 changed files with 64 additions and 46 deletions
|
@ -18,6 +18,7 @@ import SettingsStore from "../../../src/settings/SettingsStore";
|
|||
|
||||
const React = require('react');
|
||||
const ReactDOM = require("react-dom");
|
||||
import PropTypes from "prop-types";
|
||||
const TestUtils = require('react-addons-test-utils');
|
||||
const expect = require('expect');
|
||||
import sinon from 'sinon';
|
||||
|
@ -40,7 +41,7 @@ const room = new Matrix.Room();
|
|||
// wrap MessagePanel with a component which provides the MatrixClient in the context.
|
||||
const WrappedMessagePanel = React.createClass({
|
||||
childContextTypes: {
|
||||
matrixClient: React.PropTypes.object,
|
||||
matrixClient: PropTypes.object,
|
||||
},
|
||||
|
||||
getChildContext: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue