From 15d4b2eaa153263ba09d24f707160ba51c55637c Mon Sep 17 00:00:00 2001 From: abdurrahmanekr Date: Fri, 24 Nov 2017 10:08:42 +0300 Subject: [PATCH] incomplete events added. --- src/FileMessage/FileMessage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FileMessage/FileMessage.js b/src/FileMessage/FileMessage.js index c597e447..247de235 100644 --- a/src/FileMessage/FileMessage.js +++ b/src/FileMessage/FileMessage.js @@ -9,14 +9,14 @@ const Circle = ProgressBar.Circle; export class FileMessage extends Component { - onClick() { + onClick(e) { if (!this.props.data.status) return; if (!this.props.data.status.download && this.props.onDownload instanceof Function) - this.props.onDownload(); + this.props.onDownload(e); else if (this.props.data.status.download && this.props.onOpen instanceof Function) - this.props.onOpen(); + this.props.onOpen(e); } render() {