Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
update loading screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mgilangjanuar committed May 10, 2022
1 parent 6b431c1 commit 675922a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ function App(): React.ReactElement {
}, [])

useEffect(() => {
window.addEventListener('load', () => setLoading(false))
window.addEventListener('load', () => setTimeout(() => {
setLoading(false)
}, 1500))
}, [])

return (
Expand Down

0 comments on commit 675922a

Please sign in to comment.