feat: add api access info modal

This commit is contained in:
jialin
2025-04-10 17:30:26 +08:00
parent 7c79accda7
commit 48580cb5b0
10 changed files with 313 additions and 24 deletions
+11 -8
View File
@@ -5,7 +5,7 @@ import styled from 'styled-components';
type ModalFooterProps = {
onOk?: () => void;
onCancel: () => void;
onCancel?: () => void;
cancelText?: string;
okText?: string;
htmlType?: 'button' | 'submit';
@@ -40,6 +40,7 @@ const ModalFooter: React.FC<ModalFooterProps> = ({
showOkBtn = true,
description,
extra,
showCancelBtn = true,
form
}) => {
const intl = useIntl();
@@ -47,13 +48,15 @@ const ModalFooter: React.FC<ModalFooterProps> = ({
<Wrapper>
<div>{description}</div>
<Space size={20} style={{ ...style }}>
<Button
onClick={onCancel}
style={{ width: '88px' }}
{...cancelBtnProps}
>
{cancelText || intl.formatMessage({ id: 'common.button.cancel' })}
</Button>
{showCancelBtn && (
<Button
onClick={onCancel}
style={{ width: '88px' }}
{...cancelBtnProps}
>
{cancelText || intl.formatMessage({ id: 'common.button.cancel' })}
</Button>
)}
{extra}
{showOkBtn && (
<Button