Skip to content

Commit

Permalink
Merge pull request #8 from consdu/bugfix/loading-timer
Browse files Browse the repository at this point in the history
Change loading wait timer from 200ms to 300ms
  • Loading branch information
consdu authored Nov 6, 2023
2 parents a2134d7 + f75b515 commit 0ef3510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Loading/Loading.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("Given a Loading Component", () => {

render(<Loading />);

act(() => vi.advanceTimersByTime(200));
act(() => vi.advanceTimersByTime(300));

const loadingAnimation = screen.getByLabelText(loadingAnimationName);

Expand Down
2 changes: 1 addition & 1 deletion src/components/Loading/Loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Loading = (): React.ReactElement => {
useEffect(() => {
const timer = setTimeout(() => {
setShowLoading(true);
}, 200);
}, 300);

return () => clearTimeout(timer);
}, []);
Expand Down

0 comments on commit 0ef3510

Please sign in to comment.