AddressUpdateContainer
Handles updating an existing address for the user.
#
Usage#
ReferenceAddressUpdateContainer
#
#
PropsonSuccess
#
(userObject) โ void
Callback function called when the address is updated succesfully.
onFailure
#
(errorObject) โ void
Callback function called when the address update fails.
type
#
"shipping"|"billing"
Address type, default is "shipping"
.
#
Children componentsAlert
#
Displays the relevant errors or success messages.
AddressUpdateFirstName
Required#
Instance of Input
Input field component to receive the first name.
AddressUpdateLastName
Required#
Instance of Input
Input field component to receive the last name.
AddressUpdateLine1
Required#
Instance of Input
Input field component to receive the address line.
AddressUpdateCountrySelect
Required#
Instance of Select
Select input to choose the country.
AddressUpdateStateSelect
Required#
Instance of Select
Select input to choose the state.
AddressUpdatePostalCode
Required#
Instance of Input
Input field component to receive the postal/zip code.
AddressUpdateCity
Required#
Instance of Input
Input field component to receive the city.
AddressUpdateSetDefault
#
Instance of Checkbox
Check box to toggle if you want to set/unset this address as the default.
AddressUpdateSubmit
Required#
Instance of Button
A button component that submits the address creation form.
#
Propsname
#
string?
The title displayed inside the button