From 8c7fabfd367f54fac9dee5937f11a3c1cbfb6920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 3 Jul 2019 14:42:51 +0800 Subject: [PATCH] fix: fix NoticeIcon dev warning dev warning (#4719) --- src/components/NoticeIcon/index.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/NoticeIcon/index.tsx b/src/components/NoticeIcon/index.tsx index 8876ef93..bb3caa4e 100644 --- a/src/components/NoticeIcon/index.tsx +++ b/src/components/NoticeIcon/index.tsx @@ -117,11 +117,13 @@ export default class NoticeIcon extends Component { }, ); return ( - - - {panes} - - + <> + + + {panes} + + + ); } @@ -155,6 +157,7 @@ export default class NoticeIcon extends Component { if ('popupVisible' in this.props) { popoverProps.visible = popupVisible; } + return (