AddEmail

AddEmail React Component allows user to add an email after completing an order

Source:

Extends

  • Component

Members

(inner) AddEmail propTypes :propTypes

Source:
Properties:
Name Type Description
order Object

An object representing the order

orderEmail String

a string containing the email attached to the order if it exists

Type:
  • propTypes

Methods

(inner) handleFieldChange()(event, value, field) → {null}

handle setting state whenever the field on the form change

Source:
Parameters:
Name Type Description
event Event

the event that fired

value String

the new value for the field

field String

which field to modify it's value

Returns:

null

Type
null

(inner) handleSubmit()(event) → {null}

Handle submitting the email form

Source:
Parameters:
Name Type Description
event Event

the event that fired

Returns:

null

Type
null