1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

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
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.