Using <Suspense /> and React.lazy()

This commit is contained in:
garronej
2022-07-29 01:31:55 +02:00
parent 0612b2d0a4
commit 449f100bc0
22 changed files with 135 additions and 90 deletions

View File

@ -1,10 +1,10 @@
import { memo } from "react";
import { Template } from "./Template";
import Template from "./Template";
import type { KcProps } from "./KcProps";
import type { KcContextBase } from "../getKcContext/KcContextBase";
import { getMsg } from "../i18n";
export const LoginIdpLinkEmail = memo(({ kcContext, ...props }: { kcContext: KcContextBase.LoginIdpLinkEmail } & KcProps) => {
const LoginIdpLinkEmail = memo(({ kcContext, ...props }: { kcContext: KcContextBase.LoginIdpLinkEmail } & KcProps) => {
const { url, realm, brokerContext, idpAlias } = kcContext;
const { msg } = getMsg(kcContext);
@ -30,3 +30,5 @@ export const LoginIdpLinkEmail = memo(({ kcContext, ...props }: { kcContext: KcC
/>
);
});
export default LoginIdpLinkEmail;