mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
- Introduced GlobalLoadingProvider to manage a consistent loading overlay across the application. - Replaced existing loading implementations with useGlobalLoadingEffect hook for better control and to prevent animation resets. - Updated components such as LoginPage, AuthCallbackPage, and DashboardLayout to utilize the new global loading mechanism. - Removed UnifiedLoadingScreen component to streamline loading management and enhance user experience.
18 lines
486 B
TypeScript
18 lines
486 B
TypeScript
"use client";
|
|
|
|
import { Suspense } from "react";
|
|
import TokenHandler from "@/components/TokenHandler";
|
|
|
|
export default function AuthCallbackPage() {
|
|
// Suspense fallback returns null - the GlobalLoadingProvider handles the loading UI
|
|
// TokenHandler uses useGlobalLoadingEffect to show the loading screen
|
|
return (
|
|
<Suspense fallback={null}>
|
|
<TokenHandler
|
|
redirectPath="/dashboard"
|
|
tokenParamName="token"
|
|
storageKey="surfsense_bearer_token"
|
|
/>
|
|
</Suspense>
|
|
);
|
|
}
|