AddressCreateContainer
Handles adding a new address for the user.
#
Usage#
ReferenceAddressCreateContainer
#
#
PropsonSuccess
#
(userObject) โ void
Callback function called when the address is created succesfully.
onGiftRedemptionSuccess
#
(userObject) โ void
Callback function called when the user is redeeming a gift, and the gift is redeemed succesfully.
onFailure
#
(errorObject) โ void
Callback function called when the address creation / gift redemption fails.
type
#
"shipping"|"billing"
Address type, default is "shipping"
.
#
Children componentsAlert
#
Displays the relevant errors or success messages.
AddressCreateFirstName
Required#
Instance of Input
Input field component to receive the first name.
AddressCreateLastName
Required#
Instance of Input
Input field component to receive the last name.
AddressCreateLine1
Required#
Instance of Input
Input field component to receive the address line.
AddressCreateCountrySelect
Required#
Instance of Select
Select input to choose the country.
AddressCreateStateSelect
Required#
Instance of Select
Select input to choose the state.
AddressCreatePostalCode
Required#
Instance of Input
Input field component to receive the postal/zip code.
AddressCreateCity
Required#
Instance of Input
Input field component to receive the city.
AddressCreateSubmit
Required#
Instance of Button
A button component that submits the address creation form.
#
Propsname
#
string?
The title displayed inside the button