From d70f599a7e6f1963ad35df9ad88e2c93709f9028 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 14 Mar 2023 15:14:40 +0800 Subject: [PATCH] test: fix Modal test cov agian (#41216) * test: fix Modal footer test cov * test: fix Modal footer test cov * fix footer * Update components/modal/PurePanel.tsx Co-authored-by: MadCcc <1075746765@qq.com> * fix footer --------- Co-authored-by: MadCcc <1075746765@qq.com> --- components/modal/Modal.tsx | 7 ++++--- components/modal/PurePanel.tsx | 7 ++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index 10d6239ff4..b369b944a4 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -200,6 +200,9 @@ const Modal: React.FC = (props) => { warning(!('visible' in props), 'Modal', '`visible` is deprecated, please use `open` instead.'); } + const dialogFooter = + footer === undefined ?