Use Loader
This commit is contained in:
parent
ebedf0b907
commit
47f4c0dfff
|
@ -31,6 +31,8 @@ var RoomAlias = ComponentBroker.get("atoms/create_room/RoomAlias");
|
||||||
var Presets = ComponentBroker.get("atoms/create_room/Presets");
|
var Presets = ComponentBroker.get("atoms/create_room/Presets");
|
||||||
var UserSelector = ComponentBroker.get("molecules/UserSelector");
|
var UserSelector = ComponentBroker.get("molecules/UserSelector");
|
||||||
|
|
||||||
|
var Loader = require("react-loader");
|
||||||
|
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'CreateRoom',
|
displayName: 'CreateRoom',
|
||||||
|
@ -99,7 +101,7 @@ module.exports = React.createClass({
|
||||||
var curr_phase = this.state.phase;
|
var curr_phase = this.state.phase;
|
||||||
if (curr_phase == this.phases.CREATING) {
|
if (curr_phase == this.phases.CREATING) {
|
||||||
return (
|
return (
|
||||||
<div>Creating...</div>
|
<Loader/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
var error_box = "";
|
var error_box = "";
|
||||||
|
|
Loading…
Reference in New Issue