Login:Src: add import AppLoader from shared
This commit is contained in:
parent
2c9d6a6833
commit
3f0dc2d150
@ -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) {
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user