mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46: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.
14 lines
450 B
TypeScript
14 lines
450 B
TypeScript
"use client";
|
|
|
|
import { useTranslations } from "next-intl";
|
|
import { useGlobalLoadingEffect } from "@/hooks/use-global-loading";
|
|
|
|
export default function AuthCallbackLoading() {
|
|
const t = useTranslations("auth");
|
|
|
|
// Use global loading - spinner animation won't reset when page transitions
|
|
useGlobalLoadingEffect(true, t("processing_authentication"), "default");
|
|
|
|
// Return null - the GlobalLoadingProvider handles the loading UI
|
|
return null;
|
|
}
|