35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import React, { memo } from "react";
|
|
import Template from "./Template";
|
|
import type { KcProps } from "./KcProps";
|
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
|
import type { I18n } from "../i18n";
|
|
|
|
const LoginVerifyEmail = memo(({ kcContext, i18n, ...props }: { kcContext: KcContextBase.LoginVerifyEmail; i18n: I18n } & KcProps) => {
|
|
const { msg } = i18n;
|
|
|
|
const { url, user } = kcContext;
|
|
|
|
return (
|
|
<Template
|
|
{...{ kcContext, i18n, ...props }}
|
|
doFetchDefaultThemeResources={true}
|
|
displayMessage={false}
|
|
headerNode={msg("emailVerifyTitle")}
|
|
formNode={
|
|
<>
|
|
<p className="instruction">{msg("emailVerifyInstruction1", user?.email)}</p>
|
|
<p className="instruction">
|
|
{msg("emailVerifyInstruction2")}
|
|
<br />
|
|
<a href={url.loginAction}>{msg("doClickHere")}</a>
|
|
|
|
{msg("emailVerifyInstruction3")}
|
|
</p>
|
|
</>
|
|
}
|
|
/>
|
|
);
|
|
});
|
|
|
|
export default LoginVerifyEmail;
|