2021-03-07 15:37:37 +01:00
|
|
|
import { memo } from "react";
|
|
|
|
import { Template } from "./Template";
|
|
|
|
import type { KcProps } from "./KcProps";
|
2021-06-23 08:16:51 +02:00
|
|
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
2022-04-27 21:02:10 +02:00
|
|
|
import { getMsg } from "../i18n";
|
2021-03-07 15:37:37 +01:00
|
|
|
|
2021-10-12 00:26:29 +02:00
|
|
|
export const LoginVerifyEmail = memo(({ kcContext, ...props }: { kcContext: KcContextBase.LoginVerifyEmail } & KcProps) => {
|
2022-04-27 21:02:10 +02:00
|
|
|
const { msg } = getMsg(kcContext);
|
2021-10-11 21:35:40 +02:00
|
|
|
|
2021-10-12 00:26:29 +02:00
|
|
|
const { url } = kcContext;
|
2021-10-11 21:35:40 +02:00
|
|
|
|
2021-10-12 00:26:29 +02:00
|
|
|
return (
|
|
|
|
<Template
|
|
|
|
{...{ kcContext, ...props }}
|
|
|
|
doFetchDefaultThemeResources={true}
|
|
|
|
displayMessage={false}
|
|
|
|
headerNode={msg("emailVerifyTitle")}
|
|
|
|
formNode={
|
|
|
|
<>
|
|
|
|
<p className="instruction">{msg("emailVerifyInstruction1")}</p>
|
|
|
|
<p className="instruction">
|
|
|
|
{msg("emailVerifyInstruction2")}
|
|
|
|
<a href={url.loginAction}>{msg("doClickHere")}</a>
|
|
|
|
{msg("emailVerifyInstruction3")}
|
|
|
|
</p>
|
|
|
|
</>
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
});
|