From 268e0ee533e742cb8293e55b2aa306cf8a69f9eb Mon Sep 17 00:00:00 2001 From: JoeyKo Date: Tue, 26 Jun 2018 18:09:19 +0800 Subject: [PATCH] onTabChange fixed --- 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 3ea8213e..ffd153d4 100644 --- a/src/components/NoticeIcon/index.js +++ b/src/components/NoticeIcon/index.js @@ -37,7 +37,7 @@ export default class NoticeIcon extends PureComponent { onTabChange = tabType => { this.setState({ tabType }); - const { onTabChange } = this.state; + const { onTabChange } = this.props; onTabChange(tabType); }; -- GitLab