diff --git a/src/components/NoticeIcon/index.js b/src/components/NoticeIcon/index.js index 2186c82f9f3e23eed49f29b218cc149a2194dbea..120daedf1ec5804c7ccada9ed3c891ff727cbca2 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); };