diff --git a/web/ASC.Web.Components/src/components/drop-down-profile-item/index.js b/web/ASC.Web.Components/src/components/drop-down-profile-item/index.js index 5e14de9de6..04ef00b1bc 100644 --- a/web/ASC.Web.Components/src/components/drop-down-profile-item/index.js +++ b/web/ASC.Web.Components/src/components/drop-down-profile-item/index.js @@ -1,4 +1,4 @@ -import React from 'react' +import React, { memo } from 'react' import styled, { css } from 'styled-components' import PropTypes from 'prop-types' import Avatar from '../avatar' @@ -53,7 +53,7 @@ const UserEmailWrapper = styled.div` ${commonStyle} `; -const DropDownProfileItem = React.memo(props => { +const DropDownProfileItem = memo(props => { //console.log("DropDownItem render"); const { displayName, email, avatarRole, avatarSource } = props; @@ -74,7 +74,7 @@ const DropDownProfileItem = React.memo(props => { ); }); -DropDownItem.propTypes = { +DropDownProfileItem.propTypes = { displayName: PropTypes.string, email: PropTypes.string, avatarRole: PropTypes.oneOf(['owner', 'admin', 'guest', 'user']),