Explorar el Código

onTabChange fixed

JoeyKo hace 7 años
padre
commit
268e0ee533
Se han modificado 1 ficheros con 1 adiciones y 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);
   };