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

This commit is contained in:
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"); var LogoutButtonController = require("../../controllers/atoms/LogoutButton");
module.exports = React.createClass({ module.exports = React.createClass({
displayName: 'LogoutButton',
mixins: [LogoutButtonController], mixins: [LogoutButtonController],
render: function() { render: function() {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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