Skip to main content
Version: Next

EmailVerifyContainer

Handles sending the email verification message to the user's email address again in case they can't find it, or if it expired already.

Usage#

import React from "react";
import {
EmailVerifyContainer,
EmailVerifyResendButton,
Alert,
} from "@pelcro/react-pelcro-js";
import "@pelcro/react-pelcro-js/dist/pelcro.css";
export const CustomVerifyEmailView = () => {
return (
<EmailVerifyContainer
onSuccess={(userObject) => {
console.log(userObject);
}}
onFailure={(err) => {
console.error(err.message);
}}
>
<Alert />
<EmailVerifyResendButton />
</EmailVerifyContainer>
);
};

Reference#

EmailVerifyContainer#

Props#

onSuccess#

(userObject) โ‡’ void

Callback function called when the verification email is sent again successfully.

onFailure#

(errorObject) โ‡’ void

Callback function called when the verification email can't be sent again.

Children components#

Alert#

Displays the relevant errors or success messages.


EmailVerifyResendButton Required#

Instance of Button

A button component that submits the resend action.

Props#

name#

string?

The title displayed inside the button