var React = require('react'); var ComponentBroker = require('../../ComponentBroker'); var RoomList = ComponentBroker.get('organisms/RoomList'); var RoomView = ComponentBroker.get('organisms/RoomView'); var MatrixToolbar = ComponentBroker.get('molecules/MatrixToolbar'); var Login = ComponentBroker.get('templates/Login'); var MatrixChatController = require("../../controllers/pages/MatrixChat"); // should be atomised var Loader = require("react-loader"); module.exports = React.createClass({ mixins: [MatrixChatController], render: function() { if (this.state.logged_in && this.state.ready) { return (