Files
keycloak_theme/src/lib/components/LoginVerifyEmail.tsx

35 lines
1.2 KiB
TypeScript
Raw Normal View History

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