ProfilePicChangeContainer
Handles changing or removing the user's profile picture.
#
Usage#
ReferenceProfilePicChangeContainer
#
#
PropsonChangeSuccess
#
() โ void
Callback function called when the picture is changed succesfully.
onRemoveSuccess
#
() โ void
Callback function called when the picture is removed succesfully.
onChangeFailure
#
(errorObject) โ void
Callback function called when changing the picture fails.
onRemoveFailure
#
(errorObject) โ void
Callback function called when removing the picture fails.
#
Children componentsAlert
#
Displays the relevant errors or success messages.
ProfilePicChangeSelectButton
Required#
Instance of Button
A button that lets the user select the picture they want to use from their device.
#
Propsname
#
string?
The title displayed inside the button
ProfilePicChangeRemoveButton
#
Instance of Button
A button that removes the user's profile picture.
#
Propsname
#
string?
The title displayed inside the button
ProfilePicChangeButton
Required#
Instance of Button
A button that submits the picture to set it as a profile picture.
#
Propsname
#
string?
The title displayed inside the button
ProfilePicChangeZoom
#
A range input that lets the user adjust the zoom level of the picture.
ProfilePicChangeCropper
Required#
lets the user adjust the picture by cropping it or by adjusting the zoom level. this component is a wrapper around react-easy-crop.