mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
use const
This commit is contained in:
parent
325bff5324
commit
0f472505db
@ -77,7 +77,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
|
||||
};
|
||||
|
||||
export default function confirm(config: ModalFuncProps) {
|
||||
let div = document.createElement('div');
|
||||
const div = document.createElement('div');
|
||||
document.body.appendChild(div);
|
||||
let currentConfig = { ...config, close, visible: true } as any;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user