Add method to Modal to create dialog with instantiated React elements as well as Classes.
This commit is contained in:
parent
05f7a3b4d1
commit
0791cac572
3 changed files with 28 additions and 9 deletions
|
@ -19,7 +19,6 @@ var MatrixClientPeg = require("../../MatrixClientPeg");
|
|||
|
||||
module.exports = {
|
||||
propTypes: {
|
||||
onFinished: React.PropTypes.func,
|
||||
initialAvatarUrl: React.PropTypes.string.isRequired,
|
||||
},
|
||||
|
||||
|
@ -29,12 +28,6 @@ module.exports = {
|
|||
Error: "error",
|
||||
},
|
||||
|
||||
getDefaultProps: function() {
|
||||
return {
|
||||
onFinished: function() {},
|
||||
};
|
||||
},
|
||||
|
||||
getInitialState: function() {
|
||||
return {
|
||||
avatarUrl: this.props.initialAvatarUrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue