This commit is contained in:
Matthew Hodgson 2015-12-18 14:04:39 +00:00
parent 4baf9d5589
commit 08ffadc2c4

View file

@ -62,7 +62,7 @@ module.exports = React.createClass({
}); });
}, },
function(error) { function(error) {
var ErrorDialog = sdk.getComponent("organisms.ErrorDialog"); var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createDialog(ErrorDialog, { Modal.createDialog(ErrorDialog, {
title: "Can't load user settings", title: "Can't load user settings",
description: error.toString() description: error.toString()
@ -117,7 +117,7 @@ module.exports = React.createClass({
self.setState({ self.setState({
phase: self.Phases.Display, phase: self.Phases.Display,
}); });
var ErrorDialog = sdk.getComponent("organisms.ErrorDialog"); var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createDialog(ErrorDialog, { Modal.createDialog(ErrorDialog, {
title: "Can't save user settings", title: "Can't save user settings",
description: error.toString() description: error.toString()
@ -190,7 +190,7 @@ module.exports = React.createClass({
}, },
render: function() { render: function() {
var Loader = sdk.getComponent("atoms.Spinner"); var Loader = sdk.getComponent("elements.Spinner");
var saving; var saving;
switch (this.state.phase) { switch (this.state.phase) {
case this.Phases.Loading: case this.Phases.Loading:
@ -198,7 +198,7 @@ module.exports = React.createClass({
case this.Phases.Saving: case this.Phases.Saving:
saving = <Loader /> saving = <Loader />
case this.Phases.Display: case this.Phases.Display:
var RoomHeader = sdk.getComponent('molecules.RoomHeader'); var RoomHeader = sdk.getComponent('rooms.RoomHeader');
return ( return (
<div className="mx_UserSettings"> <div className="mx_UserSettings">
<RoomHeader simpleHeader="Settings" onCancelClick={ this.onClose } /> <RoomHeader simpleHeader="Settings" onCancelClick={ this.onClose } />