feat: users list

This commit is contained in:
jialin
2024-05-20 19:22:33 +08:00
parent 96e83878d1
commit a416bc7eab
6 changed files with 339 additions and 22 deletions
+10 -3
View File
@@ -3,15 +3,22 @@ import { Button, Space } from 'antd';
type ModalFooterProps = {
onOk: () => void;
onCancel: () => void;
cancelText?: string;
okText?: string;
};
const ModalFooter: React.FC<ModalFooterProps> = ({ onOk, onCancel }) => {
const ModalFooter: React.FC<ModalFooterProps> = ({
onOk,
onCancel,
cancelText,
okText
}) => {
return (
<Space size={20}>
<Button onClick={onCancel} style={{ width: '88px' }}>
{cancelText || '取消'}
</Button>
<Button type="primary" onClick={onOk} style={{ width: '88px' }}>
{okText || '保存'}
</Button>
</Space>
);