From 67ee23e4948491e311e09129aef4fea0329cd54d Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 23 Jul 2015 14:59:43 +0500 Subject: [PATCH] Placing SVGs into constants.jsx --- web/react/components/channel_header.jsx | 2 +- web/react/components/navbar.jsx | 2 +- web/react/components/post_info.jsx | 4 +++- web/react/components/sidebar_header.jsx | 4 +++- web/react/utils/constants.jsx | 4 +++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index 30435dc08c..7a129f2005 100644 --- a/web/react/components/channel_header.jsx +++ b/web/react/components/channel_header.jsx @@ -205,7 +205,7 @@ module.exports = React.createClass({
- "}} /> + diff --git a/web/react/components/navbar.jsx b/web/react/components/navbar.jsx index fe0d498bbc..6d23c0d9ba 100644 --- a/web/react/components/navbar.jsx +++ b/web/react/components/navbar.jsx @@ -191,7 +191,7 @@ module.exports = React.createClass({ ; var right_sidebar_collapse_button= currentId == null ? null : ; diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index d6422fe3a7..8eaaf4e8c8 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -4,6 +4,8 @@ var UserStore = require('../stores/user_store.jsx'); var utils = require('../utils/utils.jsx'); +var Constants = require('../utils/constants.jsx'); + module.exports = React.createClass({ getInitialState: function() { return { }; @@ -21,7 +23,7 @@ module.exports = React.createClass({ var comments = ""; var lastCommentClass = this.props.isLastComment ? " comment-icon__container__show" : " comment-icon__container__hide"; if (this.props.commentCount >= 1) { - comments = "}} />{this.props.commentCount}; + comments = {this.props.commentCount}; } return ( diff --git a/web/react/components/sidebar_header.jsx b/web/react/components/sidebar_header.jsx index 859e425a62..5b442aeacc 100644 --- a/web/react/components/sidebar_header.jsx +++ b/web/react/components/sidebar_header.jsx @@ -6,6 +6,8 @@ var utils = require('../utils/utils.jsx'); var client = require('../utils/client.jsx'); var UserStore = require('../stores/user_store.jsx'); +var Constants = require('../utils/constants.jsx'); + function getStateFromStores() { return { teams: UserStore.getTeams() }; } @@ -75,7 +77,7 @@ var NavbarDropdown = React.createClass({
    • Account Settings
    • diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx index 2249da0d34..77ce195302 100644 --- a/web/react/utils/constants.jsx +++ b/web/react/utils/constants.jsx @@ -82,5 +82,7 @@ module.exports = { MONTHS: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], MAX_DMS: 10, ONLINE_ICON_SVG: "", - OFFLINE_ICON_SVG: "" + OFFLINE_ICON_SVG: "", + MENU_ICON: " ", + COMMENT_ICON: " " };