Merge pull request #3743 from matrix-org/t3chguy/react16_contexts

Migrate away from React Legacy contexts API
This commit is contained in:
Michael Telatynski 2019-12-19 20:32:11 +00:00 committed by GitHub
commit 24d0d0d596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 654 additions and 757 deletions

View file

@ -150,16 +150,6 @@ export default createReactClass({
makeRegistrationUrl: PropTypes.func.isRequired,
},
childContextTypes: {
appConfig: PropTypes.object,
},
getChildContext: function() {
return {
appConfig: this.props.config,
};
},
getInitialState: function() {
const s = {
// the master view we are showing.