forgeplus-react/src/forge/SecuritySetting/sub/DeleteBox.jsx

28 lines
936 B
React
Raw Normal View History

2021-07-22 17:44:12 +08:00
import React from 'react';
import { AlignCenter } from '../../Component/layout';
2021-09-03 10:08:24 +08:00
import Modals from '../../Component/PublicModal/Index';
import { Button } from 'antd';
2021-07-22 17:44:12 +08:00
function DeleteBox({ visible , onCancel ,onSuccess }) {
return(
2021-09-03 10:08:24 +08:00
<Modals
2021-07-22 17:44:12 +08:00
visible={visible}
onCancel={onCancel}
2021-09-03 10:08:24 +08:00
title={"删除SSH密钥"}
btn={
2021-07-22 17:44:12 +08:00
<div>
<Button size={'large'} onClick={onCancel}>取消</Button>
<Button type={"danger"} size={"large"} onClick={onSuccess}>确认删除</Button>
</div>
}
>
<div className="desc">
2021-09-03 10:08:24 +08:00
<AlignCenter className="descMain">
<i className="iconfont icon-jinggao1 mr10 font-20 red"></i>您确定要删除此 SSH 密钥吗</AlignCenter>
<p>此操作将永久删除该SSH密钥且不可恢复如果您想再次使用该密钥则需要您重新上传</p>
2021-07-22 17:44:12 +08:00
</div>
2021-09-03 10:08:24 +08:00
</Modals>
2021-07-22 17:44:12 +08:00
)
}
export default DeleteBox;