mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
- Introduced a new UnifiedLoadingScreen component for consistent loading indicators in the application. - Replaced existing loading implementations in LoginPage, AuthCallbackPage, DashboardLayout, and other components with the new unified loading screen. - Updated translations for loading messages to enhance user experience and clarity. - Improved loading states in the ElectricProvider and TokenHandler components to utilize the new loading screen, ensuring a cohesive look and feel during loading processes.
19 lines
660 B
TypeScript
19 lines
660 B
TypeScript
import { useTranslations } from "next-intl";
|
|
import { Spinner } from "@/components/ui/spinner";
|
|
|
|
export default function AuthCallbackLoading() {
|
|
const t = useTranslations("auth");
|
|
return (
|
|
<div className="fixed inset-0 z-[9999] flex min-h-screen flex-col items-center justify-center bg-background">
|
|
<div className="flex flex-col items-center space-y-4">
|
|
<div className="h-12 w-12 flex items-center justify-center">
|
|
<Spinner size="xl" className="text-primary" />
|
|
</div>
|
|
<span className="text-muted-foreground text-sm min-h-[1.25rem] text-center max-w-md px-4">
|
|
{t("processing_authentication")}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|