This is an automated email from the ASF dual-hosted git repository. mintsweet pushed a commit to branch feat-5791 in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 827ebc19566c4e96b22371de4a4312d2cb41ba34 Author: mintsweet <[email protected]> AuthorDate: Tue Sep 12 15:38:50 2023 +1200 refactor(config-ui): adjust the props footer for dialog component --- config-ui/src/components/dialog/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config-ui/src/components/dialog/index.tsx b/config-ui/src/components/dialog/index.tsx index a5d79f2b5..de9ff9bba 100644 --- a/config-ui/src/components/dialog/index.tsx +++ b/config-ui/src/components/dialog/index.tsx @@ -56,16 +56,14 @@ export const Dialog = ({ </S.Header> )} <S.Body className={Classes.DIALOG_BODY}>{children}</S.Body> - {footer ? ( - footer - ) : footer !== null ? ( + {footer !== null && ( <S.Footer className={Classes.DIALOG_FOOTER}> <div className={Classes.DIALOG_FOOTER_ACTIONS}> <Button outlined intent={Intent.PRIMARY} onClick={onCancel} text={cancelText} /> <Button disabled={okDisabled} loading={okLoading} intent={Intent.PRIMARY} text={okText} onClick={onOk} /> </div> </S.Footer> - ) : null} + )} </S.Container> ); };
