Browse Source

onTabChange fixed

pull/1741/head
JoeyKo 8 years ago
committed by 陈帅
parent
commit
268e0ee533
  1. 2
      src/components/NoticeIcon/index.js

2
src/components/NoticeIcon/index.js

@ -37,7 +37,7 @@ export default class NoticeIcon extends PureComponent {
onTabChange = tabType => { onTabChange = tabType => {
this.setState({ tabType }); this.setState({ tabType });
const { onTabChange } = this.state; const { onTabChange } = this.props;
onTabChange(tabType); onTabChange(tabType);
}; };

Loading…
Cancel
Save