From b406d0db7e1318d9f1e8a1476dc1e12baa723323 Mon Sep 17 00:00:00 2001 From: abdurrahmanekr Date: Wed, 19 Aug 2020 13:08:26 +0300 Subject: [PATCH] onClick events added --- package.json | 2 +- src/ChatList/ChatList.js | 6 +++--- src/MeetingList/MeetingList.js | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 661e57a1..ff3c7c2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-chat-elements", - "version": "10.10.0", + "version": "10.10.1", "description": "Reactjs chat components", "author": "Avare Kodcu ", "main": "dist/main.js", diff --git a/src/ChatList/ChatList.js b/src/ChatList/ChatList.js index af800dc7..2f0a4e78 100644 --- a/src/ChatList/ChatList.js +++ b/src/ChatList/ChatList.js @@ -35,9 +35,9 @@ export class ChatList extends Component { key={i} lazyLoadingImage={this.props.lazyLoadingImage} {...x} - onAvatarError={(e) => this.onAvatarError(x,i,e)} - onContextMenu={(e) => this.onContextMenu(x,i,e)} - onClick={() => this.onClick(x, i)}/> + onAvatarError={(e) => this.onAvatarError(x, i, e)} + onContextMenu={(e) => this.onContextMenu(x, i, e)} + onClick={() => this.onClick(x, i, e)}/> )) } diff --git a/src/MeetingList/MeetingList.js b/src/MeetingList/MeetingList.js index 185affd0..3376a302 100644 --- a/src/MeetingList/MeetingList.js +++ b/src/MeetingList/MeetingList.js @@ -45,11 +45,11 @@ export class MeetingList extends Component { key={i} lazyLoadingImage={this.props.lazyLoadingImage} {...x} - onAvatarError={(e) => this.onAvatarError(x,i,e)} - onContextMenu={(e) => this.onContextMenu(x,i,e)} - onClick={() => this.onClick(x, i)} - onMeetingClick={() => this.onMeetingClick(x, i)} - onShareClick={() => this.onShareClick(x, i)}/> + onAvatarError={(e) => this.onAvatarError(x, i, e)} + onContextMenu={(e) => this.onContextMenu(x, i, e)} + onClick={() => this.onClick(x, i, e)} + onMeetingClick={() => this.onMeetingClick(x, i, e)} + onShareClick={() => this.onShareClick(x, i, e)}/> )) }