element-web/src/atoms/LogoutButton.js

18 lines
355 B
JavaScript
Raw Normal View History

var React = require('react');
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>
);
}
});