Rename Fallback to DefaultPage
This commit is contained in:
parent
7a040935e9
commit
8a25b93ab2
@ -12,7 +12,7 @@ const Applications = lazy(() => import("keycloakify/account/pages/Applications")
|
|||||||
const Log = lazy(() => import("keycloakify/account/pages/Log"));
|
const Log = lazy(() => import("keycloakify/account/pages/Log"));
|
||||||
const FederatedIdentity = lazy(() => import("keycloakify/account/pages/FederatedIdentity"));
|
const FederatedIdentity = lazy(() => import("keycloakify/account/pages/FederatedIdentity"));
|
||||||
|
|
||||||
export default function Fallback(props: PageProps<KcContext, I18n>) {
|
export default function DefaultPage(props: PageProps<KcContext, I18n>) {
|
||||||
const { kcContext, ...rest } = props;
|
const { kcContext, ...rest } = props;
|
||||||
|
|
||||||
return (
|
return (
|
@ -41,12 +41,12 @@ const LoginResetOtp = lazy(() => import("keycloakify/login/pages/LoginResetOtp")
|
|||||||
const LoginX509Info = lazy(() => import("keycloakify/login/pages/LoginX509Info"));
|
const LoginX509Info = lazy(() => import("keycloakify/login/pages/LoginX509Info"));
|
||||||
const WebauthnError = lazy(() => import("keycloakify/login/pages/WebauthnError"));
|
const WebauthnError = lazy(() => import("keycloakify/login/pages/WebauthnError"));
|
||||||
|
|
||||||
type FallbackProps = PageProps<KcContext, I18n> & {
|
type DefaultPageProps = PageProps<KcContext, I18n> & {
|
||||||
UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
|
UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
|
||||||
doMakeUserConfirmPassword: boolean;
|
doMakeUserConfirmPassword: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Fallback(props: FallbackProps) {
|
export default function DefaultPage(props: DefaultPageProps) {
|
||||||
const { kcContext, ...rest } = props;
|
const { kcContext, ...rest } = props;
|
||||||
|
|
||||||
return (
|
return (
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Fallback from "../../dist/account/Fallback";
|
import DefaultPage from "../../dist/account/Fallback";
|
||||||
import { useI18n } from "./i18n";
|
import { useI18n } from "./i18n";
|
||||||
import type { KcContext } from "./KcContext";
|
import type { KcContext } from "./KcContext";
|
||||||
import Template from "../../dist/account/Template";
|
import Template from "../../dist/account/Template";
|
||||||
@ -9,5 +9,5 @@ export default function KcApp(props: { kcContext: KcContext }) {
|
|||||||
|
|
||||||
const { i18n } = useI18n({ kcContext });
|
const { i18n } = useI18n({ kcContext });
|
||||||
|
|
||||||
return <Fallback kcContext={kcContext} i18n={i18n} Template={Template} doUseDefaultCss={true} />;
|
return <DefaultPage kcContext={kcContext} i18n={i18n} Template={Template} doUseDefaultCss={true} />;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Fallback from "../../dist/login/Fallback";
|
import DefaultPage from "../../dist/login/Fallback";
|
||||||
import type { KcContext } from "./KcContext";
|
import type { KcContext } from "./KcContext";
|
||||||
import { useI18n } from "./i18n";
|
import { useI18n } from "./i18n";
|
||||||
import { useDownloadTerms } from "../../dist/login/lib/useDownloadTerms";
|
import { useDownloadTerms } from "../../dist/login/lib/useDownloadTerms";
|
||||||
@ -37,7 +37,7 @@ export default function KcApp(props: { kcContext: KcContext }) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fallback
|
<DefaultPage
|
||||||
kcContext={kcContext}
|
kcContext={kcContext}
|
||||||
i18n={i18n}
|
i18n={i18n}
|
||||||
Template={Template}
|
Template={Template}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user