You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
upgrade to react 0.14
This commit is contained in:
@@ -27,7 +27,8 @@
|
|||||||
"matrix-js-sdk": "^0.3.0",
|
"matrix-js-sdk": "^0.3.0",
|
||||||
"optimist": "^0.6.1",
|
"optimist": "^0.6.1",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"react": "^0.13.3",
|
"react": "^0.14.2",
|
||||||
|
"react-dom": "^0.14.2",
|
||||||
"react-loader": "^1.4.0"
|
"react-loader": "^1.4.0"
|
||||||
},
|
},
|
||||||
"//deps": "The loader packages are here because webpack in a project that depends on us needs them in this package's node_modules folder",
|
"//deps": "The loader packages are here because webpack in a project that depends on us needs them in this package's node_modules folder",
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ limitations under the License.
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var React = require('react');
|
var React = require('react');
|
||||||
|
var ReactDOM = require('react-dom');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
DialogContainerId: "mx_Dialog_Container",
|
DialogContainerId: "mx_Dialog_Container",
|
||||||
@@ -52,7 +53,7 @@ module.exports = {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
React.render(dialog, this.getOrCreateContainer());
|
ReactDOM.render(dialog, this.getOrCreateContainer());
|
||||||
|
|
||||||
return {close: closeDialog};
|
return {close: closeDialog};
|
||||||
},
|
},
|
||||||
@@ -77,7 +78,7 @@ module.exports = {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
React.render(dialog, this.getOrCreateContainer());
|
ReactDOM.render(dialog, this.getOrCreateContainer());
|
||||||
|
|
||||||
return {close: closeDialog};
|
return {close: closeDialog};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user