Home Reference Source Repository
public class | source

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 componentWillMount() source

called before dom elements are mounted, to get current user

public getCurrentUser() source

Get current user

public logInUser(user: *) source

Log in user

Params:

NameTypeAttributeDescription
user *

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:

NameTypeAttributeDescription
user user

updated user file