refactor(loading): enhance LoadingOverlay integration in HomePage and AuthCallback for consistent loading experience

This commit is contained in:
Usman Baig
2026-01-22 18:40:56 +01:00
parent 12292b62a8
commit c5d116b334
3 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ export default function HomePage() {
const { user, loading } = useAuth()
if (loading) {
return null
return <LoadingOverlay logoSrc="/ciphera_icon_no_margins.png" title="Pulse" portal={false} />
}
if (!user) {
@@ -91,7 +91,7 @@ export default function HomePage() {
// * Wait for organization context before rendering SiteList to avoid "Organization Required" flash
if (user && !user.org_id) {
return null
return <LoadingOverlay logoSrc="/ciphera_icon_no_margins.png" title="Pulse" portal={false} />
}
return (