Updated GroupInfoPanel to hide members list if no user
• Updated: - GroupInfoPanel to hide members list if no user
This commit is contained in:
parent
96f8bb8a32
commit
ec64db2529
@ -4,6 +4,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { openModal } from '../../actions/modal'
|
||||
import { MODAL_GROUP_MEMBERS } from '../../constants'
|
||||
import { me } from '../../initial_state'
|
||||
import { shortNumberFormat } from '../../utils/numbers'
|
||||
import PanelLayout from './panel_layout'
|
||||
import Button from '../button'
|
||||
@ -59,6 +60,9 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||
|
||||
<Divider isSmall />
|
||||
|
||||
{
|
||||
!!me &&
|
||||
<Fragment>
|
||||
<div className={[_s.default, _s.flexRow, _s.justifyContentCenter].join(' ')}>
|
||||
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
||||
<Icon id='group' size='14px' className={_s.fillPrimary} />
|
||||
@ -82,6 +86,8 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||
</div>
|
||||
|
||||
<Divider isSmall />
|
||||
</Fragment>
|
||||
}
|
||||
|
||||
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
||||
<Icon id='calendar' size='12px' className={_s.fillSecondary} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user