From 3815ab806585afa205c074c0b40ddc31e4314190 Mon Sep 17 00:00:00 2001 From: nickago Date: Thu, 6 Aug 2015 11:05:13 -0700 Subject: Added keys to array-based elements and made getMe asynchronous --- web/react/components/post_list.jsx | 14 +++++++------- web/react/components/settings_sidebar.jsx | 3 ++- web/react/components/sidebar_header.jsx | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) (limited to 'web/react/components') diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index bb1b1704c..0ee7e9969 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -439,9 +439,9 @@ module.exports = React.createClass({ currentPostDay = utils.getDateForUnixTicks(post.create_at); if (currentPostDay.toDateString() != previousPostDay.toDateString()) { postCtls.push( -
-
-
{currentPostDay.toDateString()}
+
+
+
{currentPostDay.toDateString()}
); } @@ -449,9 +449,9 @@ module.exports = React.createClass({ if (post.create_at > last_viewed && !rendered_last_viewed) { rendered_last_viewed = true; postCtls.push( -
-
-
New Messages
+
+
+
New Messages
); } @@ -459,7 +459,7 @@ module.exports = React.createClass({ previousPostDay = currentPostDay; } } else { - postCtls.push(); + postCtls.push(); } return ( diff --git a/web/react/components/settings_sidebar.jsx b/web/react/components/settings_sidebar.jsx index ae8510cf2..b4d291622 100644 --- a/web/react/components/settings_sidebar.jsx +++ b/web/react/components/settings_sidebar.jsx @@ -4,6 +4,7 @@ var utils = require('../utils/utils.jsx'); module.exports = React.createClass({ + displayName:'SettingsSidebar', updateTab: function(tab) { this.props.updateTab(tab); $('.settings-modal').addClass('display--content'); @@ -14,7 +15,7 @@ module.exports = React.createClass({
diff --git a/web/react/components/sidebar_header.jsx b/web/react/components/sidebar_header.jsx index ba8f9bacd..023de3a19 100644 --- a/web/react/components/sidebar_header.jsx +++ b/web/react/components/sidebar_header.jsx @@ -87,7 +87,8 @@ var NavbarDropdown = React.createClass({ } }); } - teams.push(
  • Create a New Team
  • ); + teams.push(
  • Create a New Team
  • ); + return (
      -- cgit v1.2.3-1-g7c22