Skip to content

Commit

Permalink
fix confusion between Node.js and Browser env created by the import o…
Browse files Browse the repository at this point in the history
…f events
  • Loading branch information
oliviertassinari committed Sep 25, 2020
1 parent 27cf731 commit 686b45a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/progress/CircularIntegration.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function CircularIntegration() {
if (!loading) {
setSuccess(false);
setLoading(true);
timer.current = setTimeout(() => {
timer.current = window.setTimeout(() => {
setSuccess(true);
setLoading(false);
}, 2000);
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/progress/CircularIntegration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function CircularIntegration() {
if (!loading) {
setSuccess(false);
setLoading(true);
timer.current = setTimeout(() => {
timer.current = window.setTimeout(() => {
setSuccess(true);
setLoading(false);
}, 2000);
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/progress/DelayingAppearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function DelayingAppearance() {
}

setQuery('progress');
timerRef.current = setTimeout(() => {
timerRef.current = window.setTimeout(() => {
setQuery('success');
}, 2000);
};
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/progress/DelayingAppearance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function DelayingAppearance() {
}

setQuery('progress');
timerRef.current = setTimeout(() => {
timerRef.current = window.setTimeout(() => {
setQuery('success');
}, 2000);
};
Expand Down

0 comments on commit 686b45a

Please sign in to comment.