Skip to content

Commit b5c8d22

Browse files
authored
docs: resolve no-promise-executor-return linting error (#6856)
1 parent dc802d9 commit b5c8d22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

www/docs/examples/Button/Loading.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ function LoadingButton() {
66

77
useEffect(() => {
88
function simulateNetworkRequest() {
9-
return new Promise((resolve) => setTimeout(resolve, 2000));
9+
return new Promise(resolve => {
10+
setTimeout(resolve, 2000);
11+
});
1012
}
1113

1214
if (isLoading) {

0 commit comments

Comments
 (0)