diff --git a/src/components/widgets/Sidebar/LoadingMenuItem/LoadingMenuItem.js b/src/components/widgets/Sidebar/LoadingMenuItem/LoadingMenuItem.js index 34461c877..4ecea9a40 100644 --- a/src/components/widgets/Sidebar/LoadingMenuItem/LoadingMenuItem.js +++ b/src/components/widgets/Sidebar/LoadingMenuItem/LoadingMenuItem.js @@ -2,14 +2,13 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; import { LoadingIcon } from '../../../icons'; +import styles from '../Sidebar.less'; + const LoadingMenuItem = () => (
  • - + diff --git a/src/components/widgets/Sidebar/MenuAvatar/MenuAvatar.js b/src/components/widgets/Sidebar/MenuAvatar/MenuAvatar.js index 2b6a45dcc..58852c388 100644 --- a/src/components/widgets/Sidebar/MenuAvatar/MenuAvatar.js +++ b/src/components/widgets/Sidebar/MenuAvatar/MenuAvatar.js @@ -2,18 +2,10 @@ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; -import styles from './MenuAvatar.less'; +import styles from '../Sidebar.less'; import AvatarContainer from '../../../../containers/AvatarContainer/AvatarContainer'; -const MenuAvatar = ({ - title, - avatarUrl, - firstName, - notificationsCount = 0, - isActive = false, - useGravatar = false, - onClick, -}) => ( +const MenuAvatar = ({ title, avatarUrl, firstName, notificationsCount = 0, isActive = false, onClick }) => (
  • + className={styles.cursorPointer}> - - {title} - + {title} {notificationsCount > 0 && {notificationsCount}}
  • @@ -51,7 +36,6 @@ MenuAvatar.propTypes = { onClick: PropTypes.func, notificationsCount: PropTypes.number, isActive: PropTypes.bool, - useGravatar: PropTypes.bool, }; export default MenuAvatar; diff --git a/src/components/widgets/Sidebar/MenuAvatar/MenuAvatar.less b/src/components/widgets/Sidebar/MenuAvatar/MenuAvatar.less deleted file mode 100644 index 52b545aed..000000000 --- a/src/components/widgets/Sidebar/MenuAvatar/MenuAvatar.less +++ /dev/null @@ -1,3 +0,0 @@ -.avatar { - margin-right: 6px; -} diff --git a/src/components/widgets/Sidebar/MenuGroup/MenuGroup.js b/src/components/widgets/Sidebar/MenuGroup/MenuGroup.js index e89558061..4cb255da4 100644 --- a/src/components/widgets/Sidebar/MenuGroup/MenuGroup.js +++ b/src/components/widgets/Sidebar/MenuGroup/MenuGroup.js @@ -10,6 +10,8 @@ import { isLoading } from '../../../../redux/helpers/resourceManager'; import { getLocalizedName } from '../../../../helpers/localizedData'; import Icon from '../../../icons'; +import styles from '../Sidebar.less'; + class MenuGroup extends Component { state = { open: null, @@ -44,11 +46,6 @@ class MenuGroup extends Component { intl: { locale }, } = this.props; - const dropdownStyles = { - overflowY: 'auto', - overflowX: 'hidden', - }; - const itemsNotificationsCount = item => notifications[item.getIn(['data', 'id'])]; const notificationsCount = items.reduce((acc, item) => acc + itemsNotificationsCount(item), 0); @@ -60,20 +57,13 @@ class MenuGroup extends Component { })}> - - {title} - + {title} {notificationsCount > 0 && {notificationsCount}} - + -