ES6 SessionStore
This commit is contained in:
parent
6ffe7ef9b2
commit
536724e7c5
3 changed files with 49 additions and 48 deletions
|
@ -22,7 +22,7 @@ var Modal = require("../../../Modal");
|
|||
var sdk = require("../../../index");
|
||||
import AccessibleButton from '../elements/AccessibleButton';
|
||||
|
||||
import getSessionStore from '../../../stores/SessionStore';
|
||||
import sessionStore from '../../../stores/SessionStore';
|
||||
|
||||
module.exports = React.createClass({
|
||||
displayName: 'ChangePassword',
|
||||
|
@ -68,7 +68,7 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
componentWillMount: function() {
|
||||
this.sessionStore = getSessionStore();
|
||||
this.sessionStore = sessionStore;
|
||||
this.sessionStore.on('update', this.setStateFromSessionStore);
|
||||
|
||||
this.setStateFromSessionStore();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue