Explorar el Código

fix onTabChange error

陈帅 hace 7 años
padre
commit
6b8665e7a5
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

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