From 5ea7d9bbef2cf9da229e66bd05af776479e76f56 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 19 May 2016 18:29:15 +0500 Subject: Multiple UI Improvements (#3038) --- webapp/components/navbar_dropdown.jsx | 5 +---- webapp/components/post.jsx | 27 ++++++++++++--------------- webapp/components/rhs_thread.jsx | 9 +++++++++ webapp/components/team_general_tab.jsx | 6 +++--- 4 files changed, 25 insertions(+), 22 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/navbar_dropdown.jsx b/webapp/components/navbar_dropdown.jsx index 68ea625f8..a2592787c 100644 --- a/webapp/components/navbar_dropdown.jsx +++ b/webapp/components/navbar_dropdown.jsx @@ -80,7 +80,6 @@ export default class NavbarDropdown extends React.Component { var inviteLink = ''; var manageLink = ''; var sysAdminLink = ''; - var adminDivider = ''; var currentUser = this.props.currentUser; var isAdmin = false; var isSystemAdmin = false; @@ -134,8 +133,6 @@ export default class NavbarDropdown extends React.Component { ); - adminDivider = (
  • ); - teamSettings = (
  • - {adminDivider} +
  • {teamSettings} {integrationsLink} {manageLink} diff --git a/webapp/components/post.jsx b/webapp/components/post.jsx index de32568d1..084fb9171 100644 --- a/webapp/components/post.jsx +++ b/webapp/components/post.jsx @@ -191,24 +191,21 @@ export default class Post extends React.Component { systemMessageClass = 'post--system'; } - let profilePic = null; - if (!this.props.hideProfilePic || this.props.compactDisplay) { + let profilePic = ( + + ); + + if (Utils.isSystemMessage(post)) { profilePic = ( - ); - - if (Utils.isSystemMessage(post)) { - profilePic = ( - - ); - } } let centerClass = ''; diff --git a/webapp/components/rhs_thread.jsx b/webapp/components/rhs_thread.jsx index 2398e5e69..ca5ed2dc8 100644 --- a/webapp/components/rhs_thread.jsx +++ b/webapp/components/rhs_thread.jsx @@ -17,6 +17,14 @@ import Scrollbars from 'react-custom-scrollbars'; import React from 'react'; +export function renderView(props) { + return ( +
    ); +} + export function renderThumbHorizontal(props) { return (
    -
    -- cgit v1.2.3-1-g7c22