Browse Source

onTabChange fixed

JoeyKo 7 năm trước cách đây
mục cha
commit
268e0ee533

+ 1 - 1
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);
   };
   };