1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

fix up trailing whitespace and put the buttons in the right order

This commit is contained in:
Matthew Hodgson
2016-06-02 21:07:04 +01:00
parent e20a1acb88
commit 532e93d7cb

View File

@@ -39,11 +39,11 @@ module.exports = React.createClass({
focus: true focus: true
}; };
}, },
componentDidMount: function() { componentDidMount: function() {
if (this.props.focus) { if (this.props.focus) {
// Set the cursor at the end of the text input // Set the cursor at the end of the text input
this.refs.textinput.value = this.props.value; this.refs.textinput.value = this.props.value;
} }
}, },
@@ -83,13 +83,12 @@ module.exports = React.createClass({
</div> </div>
</div> </div>
<div className="mx_Dialog_buttons"> <div className="mx_Dialog_buttons">
<button onClick={this.onOk}>
{this.props.button}
</button>
<button onClick={this.onCancel}> <button onClick={this.onCancel}>
Cancel Cancel
</button> </button>
<button onClick={this.onOk}>
{this.props.button}
</button>
</div> </div>
</div> </div>
); );