Skip to content

Commit

Permalink
moreItems check
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurrahmanekr committed Nov 2, 2020
1 parent 421fd06 commit 5f674cd
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions src/MeetingMessage/MeetingMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ export class MeetingMessage extends Component {
dateString,
title,
subject,
onClick,
onMeetingMoreSelect,
moreItems,
collapseTitle,
dataSource,
moreItems,
participants,
dataSource,

onClick,
onMeetingTitleClick,
onMeetingVideoLinkClick,
onMeetingMoreSelect,
} = this.props;

const PARTICIPANT_LIMIT = this.props.participantsLimit;
Expand Down Expand Up @@ -73,20 +74,25 @@ export class MeetingMessage extends Component {
</span>
</div>
</div>
<div>
<Dropdown
animationType="bottom"
animationPosition="norteast"
buttonProps={{
className:'rce-mtmg-right-icon',
icon: {
component: <MdMoreHoriz/>,
size: 24,
},
}}
items={moreItems}
onSelect={onMeetingMoreSelect}/>
</div>

{
moreItems &&
moreItems.length > 0 &&
<div>
<Dropdown
animationType="bottom"
animationPosition="norteast"
buttonProps={{
className:'rce-mtmg-right-icon',
icon: {
component: <MdMoreHoriz/>,
size: 24,
},
}}
items={moreItems}
onSelect={onMeetingMoreSelect}/>
</div>
}
</div>
<div
className="rce-mtmg-body-bottom"
Expand Down Expand Up @@ -248,6 +254,7 @@ MeetingMessage.defaultProps = {
collapseTitle: '',
participantsLimit: 3,
avatarFlexible: false,
moreItems: [],
dataSource: [],
participants: [],
onClick: () => void(0),
Expand Down

0 comments on commit 5f674cd

Please sign in to comment.