Skip to content

Commit

Permalink
Merge pull request #2614 from Amsterdam/feature/118364-add-spinner
Browse files Browse the repository at this point in the history
118364 added spinner as default
  • Loading branch information
remyvdwereld authored Sep 4, 2024
2 parents ff1af70 + 9dc70e9 commit 2ef7000
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/features/shared/components/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useEffect } from "react"
import { useItineraries } from "app/state/rest"
import { useRedirectToCorrectItineraryPage } from "app/features/itineraries/utils/useRedirectToCorrectItineraryPage"
import CenteredSpinner from "app/features/shared/components/atoms/CenteredSpinner/CenteredSpinner"

const HomePage: React.FC = () => {
const { data } = useItineraries()
Expand All @@ -10,7 +11,7 @@ const HomePage: React.FC = () => {
redirectToCorrectItineraryPage(data?.itineraries)
}, [data, redirectToCorrectItineraryPage])

return null
return <CenteredSpinner explanation="Even geduld alstublieft…" size={ 60 } />
}

export default HomePage

0 comments on commit 2ef7000

Please sign in to comment.