Skip to content

Commit ba1b7e8

Browse files
authored
chore: remove todos (#795)
1 parent 4856c91 commit ba1b7e8

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

src/components/dialog/confirm.tsx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,14 @@ export default function confirm(config: IModalFuncProps) {
4444
}
4545

4646
function render({ okText, cancelText, ...props }: any) {
47-
/**
48-
* TODO: Please determine if this really needs to be a macro task
49-
*/
50-
setTimeout(() => {
51-
renderUtils(
52-
<ConfirmDialog
53-
{...props}
54-
okText={okText}
55-
cancelText={cancelText}
56-
/>,
57-
div
58-
);
59-
});
47+
renderUtils(
48+
<ConfirmDialog
49+
{...props}
50+
okText={okText}
51+
cancelText={cancelText}
52+
/>,
53+
div
54+
);
6055
}
6156

6257
function close(...args: any[]) {

0 commit comments

Comments
 (0)