Components

Welcome

<Welcome done signOut />

Renders the Welcome component. This component displays when a user needs to confirm their email.

Constructor

# <Welcome done signOut />

PropTypes:
Name Type Required Description Default
done func Yes Tells Redux that this component is no longer needed (i.e. done)
signOut func Yes Tells Redux to sign the user out
Author:

View Source pages/Welcome/Welcome.js, line 32

Extends

  • Component

Members

# _wasEmailVerificationCheckedAlready

Indicates if the user's email was checked for verification at least once

View Source pages/Welcome/Welcome.js, line 46

# state

Welcome component state
Properties:
Name Type Description
isLoading boolean Indicates if the component is in a loading state
isUserEmailVerified boolean Indicates if the user's email is verified

View Source pages/Welcome/Welcome.js, line 38

Methods

# static mapDispatchToProps(dispatch) → {object}

Passes certain Redux actions to the Welcome component as props. This function is used only by the react-redux connect function.
Parameters:
Name Type Description
dispatch function The react-redux dispatch function

View Source pages/Welcome/Welcome.js, line 358

Redux actions used in the Welcome component
object

# checkIfUserEmailIsVerified()

Checks if the user's email is verified. Updates state depending on result.

View Source pages/Welcome/Welcome.js, line 60

# componentDidMount()

Checks if the user's email is verified

View Source pages/Welcome/Welcome.js, line 51

# doneButtonClickedHandler()

Tells Redux that this component is no longer needed (i.e. done)

View Source pages/Welcome/Welcome.js, line 133

# emailWasSentHandler()

Updates state to indicate that a verification email was sent. Alerts the user that a verification email was sent.

View Source pages/Welcome/Welcome.js, line 158

# getAlertBar() → {object}

Creates an alert bar if one was requested

View Source pages/Welcome/Welcome.js, line 174

An alert bar (JSX)
object

# getCheckEmailComponent() → {object}

Creates a check email component

View Source pages/Welcome/Welcome.js, line 253

A check email component (JSX)
object

# getMainComponent() → {object}

Gets the main component (loading spinner, success, or check email)

View Source pages/Welcome/Welcome.js, line 190

The main component (JSX)
object

# getSpinner() → {object}

Creates a spinner

View Source pages/Welcome/Welcome.js, line 205

A spinner (JSX)
object

# getSuccessComponent() → {object}

Creates the success component

View Source pages/Welcome/Welcome.js, line 218

A success component (JSX)
object

# render() → {object}

Renders the Welcome component

View Source pages/Welcome/Welcome.js, line 312

The JSX to render
object

# resendEmailVerificationButtonClickedHandler()

Resends an email verification

View Source pages/Welcome/Welcome.js, line 141

# userEmailFetchError(error)

Updates the state to indicate that the email is not verified. Alerts the user that there was an error.
Parameters:
Name Type Description
error object The error received

View Source pages/Welcome/Welcome.js, line 117

# userEmailIsVerified()

Updates state to indicate that the email is verified

View Source pages/Welcome/Welcome.js, line 83

# userEmailNotVerified()

Updates state to indicate that the email is not verified Alerts the user that the email is not verified

View Source pages/Welcome/Welcome.js, line 92