feat: users list
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user