We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c04a2e + 1b5a6b3 commit 664c009Copy full SHA for 664c009
src/libs/core/lib/router/restricted.route.tsx
@@ -1,6 +1,7 @@
1
import { FC, useContext } from 'react'
2
3
import { RestrictedPage } from '~/libs/shared'
4
+import { LoadingSpinner } from '~/libs/ui'
5
6
import { profileContext, ProfileContextData } from '../profile'
7
@@ -17,7 +18,7 @@ const RestrictedRoute: FC<RestrictedRouteProps> = props => {
17
18
19
// if we're not initialized yet, just return the children
20
if (!initialized) {
- return props.children
21
+ return <LoadingSpinner />
22
}
23
24
// if we have a profile and `rolesRequired` is configured for the route
0 commit comments