瀏覽代碼

fix: fix NoticeIcon dev warning dev warning (#4719)

陈帅 6 年之前
父節點
當前提交
8c7fabfd36
共有 1 個文件被更改,包括 8 次插入5 次删除
  1. 8 5
      src/components/NoticeIcon/index.tsx

+ 8 - 5
src/components/NoticeIcon/index.tsx

@@ -117,11 +117,13 @@ export default class NoticeIcon extends Component<NoticeIconProps> {
       },
       },
     );
     );
     return (
     return (
-      <Spin spinning={loading} delay={300}>
-        <Tabs className={styles.tabs} onChange={this.onTabChange}>
-          {panes}
-        </Tabs>
-      </Spin>
+      <>
+        <Spin spinning={loading} delay={300}>
+          <Tabs className={styles.tabs} onChange={this.onTabChange}>
+            {panes}
+          </Tabs>
+        </Spin>
+      </>
     );
     );
   }
   }
 
 
@@ -155,6 +157,7 @@ export default class NoticeIcon extends Component<NoticeIconProps> {
     if ('popupVisible' in this.props) {
     if ('popupVisible' in this.props) {
       popoverProps.visible = popupVisible;
       popoverProps.visible = popupVisible;
     }
     }
+
     return (
     return (
       <HeaderDropdown
       <HeaderDropdown
         placement="bottomRight"
         placement="bottomRight"