UserUpdateContainer
Handles updating the user's information.
#
Usage#
ReferenceUserUpdateContainer
#
#
PropsonSuccess
#
(userObject) โ void
Callback function called when the user updates profile information successfully.
onFailure
#
(errorObject) โ void
Callback function called when the update fails.
#
Children componentsAlert
#
Displays the relevant errors or success messages.
UserUpdateProfilePic
#
Shows the user's profile picture.
#
PropsonClick
#
() => void
Callback function called when the user clicks on the profile picture.
UserUpdateEmail
#
Instance of Input
Input field component that shows the user's email.
UserUpdateFirstName
#
Instance of Input
Input field component to receive the first name of the user.
UserUpdateLastName
#
Instance of Input
Input field component to receive the last name of the user.
UserUpdatePhone
#
Instance of Input
Input field component to receive the phone of the user.
UserUpdateButton
Required#
Instance of Button
A button component that submits the user update form.
#
Propsname
#
string?
The title displayed inside the button