Login:Src: add import AppLoader from shared

This commit is contained in:
Darya Umrikhina 2024-08-12 17:06:19 +04:00
parent 2c9d6a6833
commit 3f0dc2d150
2 changed files with 4 additions and 4 deletions

View File

@ -46,10 +46,10 @@ import {
getCapabilities,
getPortalPasswordSettings,
} from "@docspace/shared/api/settings";
import AppLoader from "@docspace/shared/components/app-loader";
import { TError, WithLoaderProps } from "@/types";
import { ConfirmRouteContext } from "@/components/ConfirmRoute";
import Loading from "../app/(root)/confirm/loading";
export default function withLoader<T extends WithLoaderProps>(
WrappedComponent: ComponentType<T>,
@ -168,7 +168,7 @@ export default function withLoader<T extends WithLoaderProps>(
: true;
if (!isLoaded) {
return <Loading />;
return <AppLoader />;
}
if (error) {

View File

@ -33,6 +33,7 @@ import { useTranslation } from "react-i18next";
import { getCookie } from "@docspace/shared/utils";
import { LANGUAGE } from "@docspace/shared/constants";
import { checkConfirmLink, logout } from "@docspace/shared/api/user";
import AppLoader from "@docspace/shared/components/app-loader";
import { AuthenticatedAction, ValidationResult } from "@/utils/enums";
import {
@ -42,7 +43,6 @@ import {
TError,
TConfirmRouteContext,
} from "@/types";
import Loading from "@/app/(root)/confirm/loading";
export const ConfirmRouteContext = createContext<TConfirmRouteContext>({
linkData: {},
@ -180,7 +180,7 @@ function ConfirmRoute(props: ConfirmRouteProps) {
}
if (loading) {
return <Loading />;
return <AppLoader />;
}
return (