From 6b8665e7a5f59e17e4640ed81999884050ed9bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 29 Jun 2018 10:48:10 +0800 Subject: [PATCH] fix onTabChange error --- src/components/NoticeIcon/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NoticeIcon/index.js b/src/components/NoticeIcon/index.js index 2186c82f..120daedf 100644 --- a/src/components/NoticeIcon/index.js +++ b/src/components/NoticeIcon/index.js @@ -28,7 +28,7 @@ export default class NoticeIcon extends PureComponent { }; onTabChange = tabType => { - const onTabChange = this.props; + const { onTabChange } = this.props; onTabChange(tabType); }; -- GitLab