import ContentProfile from 'learnenergy401/component/Profile/ContentProfile.js'
ContentProfile
Extends:
react~Component → ContentProfile
Method Summary
Public Methods | ||
public |
called after dom elements are mounted, set all the text on textfields |
|
public |
called before dom elements are mounted, to get current user |
|
public |
Get current user |
|
public |
logInUser(user: *) Log in user |
|
public |
render(): html Loads the profile of user |
|
public |
|
|
public |
updateProfile(user: user) update profile |
Public Methods
public componentDidUpdate() source
called after dom elements are mounted, set all the text on textfields
public render(): html source
Loads the profile of user
Return:
html | returns user profile depending on type of user |
public requestUpdate() source
public updateProfile(user: user) source
update profile
Params:
Name | Type | Attribute | Description |
user | user | updated user file |