2022-07-30 00:42:07 +02:00
|
|
|
import React, { memo } from "react";
|
2022-07-29 01:31:55 +02:00
|
|
|
import Template from "./Template";
|
2021-03-07 15:37:37 +01:00
|
|
|
import type { KcProps } from "./KcProps";
|
2021-06-23 08:16:51 +02:00
|
|
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
2022-07-31 22:30:32 +02:00
|
|
|
import type { I18n } from "../i18n";
|
2021-03-07 15:37:37 +01:00
|
|
|
|
2022-09-27 21:30:33 +02:00
|
|
|
const LoginVerifyEmail = memo(
|
|
|
|
({
|
|
|
|
kcContext,
|
|
|
|
i18n,
|
|
|
|
doFetchDefaultThemeResources = true,
|
|
|
|
...props
|
|
|
|
}: { kcContext: KcContextBase.LoginVerifyEmail; i18n: I18n; doFetchDefaultThemeResources?: boolean } & KcProps) => {
|
|
|
|
const { msg } = i18n;
|
2021-10-11 21:35:40 +02:00
|
|
|
|
2022-09-27 21:30:33 +02:00
|
|
|
const { url, user } = kcContext;
|
2021-10-11 21:35:40 +02:00
|
|
|
|
2022-09-27 21:30:33 +02:00
|
|
|
return (
|
|
|
|
<Template
|
|
|
|
{...{ kcContext, i18n, doFetchDefaultThemeResources, ...props }}
|
|
|
|
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>
|
|
|
|
</>
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
);
|
2022-07-29 01:31:55 +02:00
|
|
|
|
|
|
|
export default LoginVerifyEmail;
|