Skip to content

Commit

Permalink
118364 added spinner as default
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Sep 4, 2024
1 parent ff1af70 commit 9dc70e9
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 9dc70e9

Please sign in to comment.