fix(loading): update LoadingOverlay component to support portal prop and adjust loading states in HomePage and AuthCallback

This commit is contained in:
Usman Baig
2026-01-22 15:40:12 +01:00
parent 37daf37c06
commit 13f2950b23
3 changed files with 17 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ export default function HomePage() {
const { user, loading } = useAuth()
if (loading) {
return <LoadingOverlay logoSrc="/ciphera_icon_no_margins.png" title="Pulse" />
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 <LoadingOverlay logoSrc="/ciphera_icon_no_margins.png" title="Switching Context..." />
return <LoadingOverlay logoSrc="/ciphera_icon_no_margins.png" title="Pulse" portal={false} />
}
return (