Version: 2.0.0
GiftRedeemContainer
Handles starting the flow of redeeming a gift code. once the user submits a gift code successfully, the code is stored in usePelcro's giftCode field.
#
Usage#
ReferenceGiftRedeemContainer
#
#
PropsonSuccess
#
(giftCode) โ void
Callback function called when the gift code is submitted succesfully.
onFailure
#
() โ void
Callback function called when submitting the gift code fails.
#
Children componentsAlert
#
Displays the relevant errors or success messages.
GiftRedeemCode
Required#
Instance of Input
Input field component for the gift code.
GiftRedeemSubmitButton
Required#
Instance of Button
A button component that submits the form.
#
Propsname
#
string?
The title displayed inside the button