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