chore: adjust the deletion modal config

This commit is contained in:
jialin
2024-12-24 10:34:08 +08:00
parent 762ab30c71
commit 02391e66dc
9 changed files with 65 additions and 14 deletions
@@ -41,7 +41,7 @@ const AddWorker: React.FC<ViewModalProps> = (props) => {
width={600}
styles={{
body: {
height: 410
height: 420
}
}}
footer={null}
@@ -149,6 +149,7 @@ const Resources: React.FC = () => {
const handleDelete = (row: ListItem) => {
modalRef.current.show({
content: 'worker',
operation: 'common.delete.single.confirm',
name: row.name,
async onOk() {
console.log('OK');
@@ -161,6 +162,7 @@ const Resources: React.FC = () => {
const handleDeleteBatch = () => {
modalRef.current.show({
content: 'wokers',
operation: 'common.delete.confirm',
selection: true,
async onOk() {
await handleBatchRequest(rowSelection.selectedRowKeys, deleteWorker);