mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +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.
20 lines
569 B
TypeScript
20 lines
569 B
TypeScript
"use client";
|
|
|
|
import { Suspense } from "react";
|
|
import { useTranslations } from "next-intl";
|
|
import { UnifiedLoadingScreen } from "@/components/ui/unified-loading-screen";
|
|
import TokenHandler from "@/components/TokenHandler";
|
|
|
|
export default function AuthCallbackPage() {
|
|
const t = useTranslations("auth");
|
|
|
|
return (
|
|
<Suspense fallback={<UnifiedLoadingScreen variant="default" message={t("processing_authentication")} />}>
|
|
<TokenHandler
|
|
redirectPath="/dashboard"
|
|
tokenParamName="token"
|
|
storageKey="surfsense_bearer_token"
|
|
/>
|
|
</Suspense>
|
|
);
|
|
}
|