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-07-31 22:30:32 +02:00
|
|
|
const LoginVerifyEmail = memo(({ kcContext, i18n, ...props }: { kcContext: KcContextBase.LoginVerifyEmail; i18n: I18n } & KcProps) => {
|
|
|
|
const { msg } = i18n;
|
2021-10-11 21:35:40 +02:00
|
|
|
|
2022-07-06 02:05:08 +02:00
|
|
|
const { url, user } = kcContext;
|
2021-10-11 21:35:40 +02:00
|
|
|
|
2021-10-12 00:26:29 +02:00
|
|
|
return (
|
|
|
|
<Template
|
2022-07-31 22:30:32 +02:00
|
|
|
{...{ kcContext, i18n, ...props }}
|
2021-10-12 00:26:29 +02:00
|
|
|
doFetchDefaultThemeResources={true}
|
|
|
|
displayMessage={false}
|
|
|
|
headerNode={msg("emailVerifyTitle")}
|
|
|
|
formNode={
|
|
|
|
<>
|
2022-07-06 02:05:08 +02:00
|
|
|
<p className="instruction">{msg("emailVerifyInstruction1", user?.email)}</p>
|
2021-10-12 00:26:29 +02:00
|
|
|
<p className="instruction">
|
|
|
|
{msg("emailVerifyInstruction2")}
|
2022-07-06 02:05:08 +02:00
|
|
|
<br />
|
2021-10-12 00:26:29 +02:00
|
|
|
<a href={url.loginAction}>{msg("doClickHere")}</a>
|
2022-07-06 02:05:08 +02:00
|
|
|
|
2021-10-12 00:26:29 +02:00
|
|
|
{msg("emailVerifyInstruction3")}
|
|
|
|
</p>
|
|
|
|
</>
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
});
|
2022-07-29 01:31:55 +02:00
|
|
|
|
|
|
|
export default LoginVerifyEmail;
|