Something starting to resemble a Matrix Client

This commit is contained in:
David Baker 2015-06-12 17:34:17 +01:00
parent 2f6a123118
commit 125fa78bc6
15 changed files with 148 additions and 21 deletions

19
src/atoms/LogoutButton.js Normal file
View file

@ -0,0 +1,19 @@
var React = require('react');
var mxCliPeg = require("../MatrixClientPeg");
var dis = require("../dispatcher");
module.exports = React.createClass({
onClick: function() {
dis.dispatch({
action: 'logout'
});
},
render: function() {
return (
<button className="mx_LogoutButton" onClick={this.onClick}>Sign out</button>
);
}
});