Add displayNames so they're not all just 'exports' in the react debugger

pull/1/head
David Baker 2015-06-19 16:21:09 +01:00
parent 41014af471
commit e77e9b7704
18 changed files with 18 additions and 0 deletions

View File

@ -3,6 +3,7 @@ var React = require('react');
var LogoutButtonController = require("../../controllers/atoms/LogoutButton");
module.exports = React.createClass({
displayName: 'LogoutButton',
mixins: [LogoutButtonController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var MessageTimestampController = require("../../controllers/atoms/MessageTimestamp");
module.exports = React.createClass({
displayName: 'MessageTimestamp',
mixins: [MessageTimestampController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var MEmoteTileController = require("../../controllers/molecules/MEmoteTile");
module.exports = React.createClass({
displayName: 'MEmoteTile',
mixins: [MEmoteTileController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var MNoticeTileController = require("../../controllers/molecules/MNoticeTile");
module.exports = React.createClass({
displayName: 'MNoticeTile',
mixins: [MNoticeTileController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var MTextTileController = require("../../controllers/molecules/MTextTile");
module.exports = React.createClass({
displayName: 'MTextTile',
mixins: [MTextTileController],
render: function() {

View File

@ -7,6 +7,7 @@ var LogoutButton = ComponentBroker.get("atoms/LogoutButton");
var MatrixToolbarController = require("../../controllers/molecules/MatrixToolbar");
module.exports = React.createClass({
displayName: 'MatrixToolbar',
mixins: [MatrixToolbarController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var MessageComposerController = require("../../controllers/molecules/MessageComposer");
module.exports = React.createClass({
displayName: 'MessageComposer',
mixins: [MessageComposerController],
render: function() {

View File

@ -18,6 +18,7 @@ var tileTypes = {
var MessageTileController = require("../../controllers/molecules/MessageTile");
module.exports = React.createClass({
displayName: 'MessageTile',
mixins: [MessageTileController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var ProgressBarController = require("./../molecules/ProgressBar");
module.exports = React.createClass({
displayName: 'ProgressBar',
mixins: [ProgressBarController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var RoomHeaderController = require("../../controllers/molecules/RoomHeader");
module.exports = React.createClass({
displayName: 'RoomHeader',
mixins: [RoomHeaderController],
render: function() {

View File

@ -4,6 +4,7 @@ var classNames = require('classnames');
var RoomTileController = require("../../controllers/molecules/RoomTile");
module.exports = React.createClass({
displayName: 'RoomTile',
mixins: [RoomTileController],
render: function() {
var classes = classNames({

View File

@ -3,6 +3,7 @@ var React = require('react');
var SenderProfileController = require("../../controllers/molecules/SenderProfile");
module.exports = React.createClass({
displayName: 'SenderProfile',
mixins: [SenderProfileController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var ServerConfigController = require("../../controllers/molecules/ServerConfig");
module.exports = React.createClass({
displayName: 'ServerConfig',
mixins: [ServerConfigController],
render: function() {

View File

@ -3,6 +3,7 @@ var React = require('react');
var UnknownMessageTileController = require("../../controllers/molecules/UnknownMessageTile");
module.exports = React.createClass({
displayName: 'UnknownMessageTile',
mixins: [UnknownMessageTileController],
render: function() {

View File

@ -4,6 +4,7 @@ var RoomListController = require("../../controllers/organisms/RoomList");
module.exports = React.createClass({
displayName: 'RoomList',
mixins: [RoomListController],
render: function() {

View File

@ -10,6 +10,7 @@ var RoomViewController = require("../../controllers/organisms/RoomView");
module.exports = React.createClass({
displayName: 'RoomView',
mixins: [RoomViewController],
getMessageTiles: function() {

View File

@ -13,6 +13,7 @@ var Loader = require("react-loader");
module.exports = React.createClass({
displayName: 'MatrixChat',
mixins: [MatrixChatController],
render: function() {

View File

@ -8,6 +8,7 @@ var Loader = require("react-loader");
var LoginController = require("../../controllers/templates/Login");
module.exports = React.createClass({
displayName: 'Login',
mixins: [LoginController],
loginContent: function() {