Explorar o código

onTabChange fixed

JoeyKo %!s(int64=7) %!d(string=hai) anos
pai
achega
268e0ee533
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/NoticeIcon/index.js

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