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

39 lines
1.0 KiB
TypeScript
Raw Normal View History

2021-03-07 15:37:37 +01:00
import { memo } from "react";
import { Template } from "./Template";
import type { KcProps } from "./KcProps";
2021-03-08 00:09:52 +01:00
import type { KcContext } from "../KcContext";
2021-03-07 15:37:37 +01:00
import { useKcMessage } from "../i18n/useKcMessage";
2021-03-08 00:09:52 +01:00
export const LoginVerifyEmail = memo(({ kcContext, ...props }: { kcContext: KcContext.LoginVerifyEmail; } & KcProps) => {
2021-03-07 15:37:37 +01:00
const { msg } = useKcMessage();
const {
url
} = kcContext;
return (
<Template
2021-03-08 00:09:52 +01:00
{...{ kcContext, ...props }}
2021-03-07 15:37:37 +01:00
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>
</>
}
/>
);
});