Home Reference Source Repository
import AdminReview from 'learnenergy401/component/AdminReview.js'
public class | source

AdminReview

Extends:

react~Component → AdminReview

Method Summary

Public Methods
public

approve(key_name,: object)

Accepts a user

public

State changes if a user is approved

public

Invoked immediately before a component is unmounted and destroyed, to update our states

public

Gets additional resource information for signup

public

Gets information for review

public

Gets purchaser information for signup

public

Gets vendor information for signup

public

Gets current user

public

reject(key_name,: object)

rejects a user

public

State changes if a user is rejected

public

render(): html

Loads the details

public

returns back to previous page

Public Methods

public approve(key_name,: object) source

Accepts a user

Params:

NameTypeAttributeDescription
key_name, object

role - information about user to approve

public approveUser(user: object) source

State changes if a user is approved

Params:

NameTypeAttributeDescription
user object

object which contains information for us to move into firebase and store in our database.

public componentWillMount() source

Invoked immediately before a component is unmounted and destroyed, to update our states

public fetchADSignup(): object source

Gets additional resource information for signup

Return:

object

user - Returns addition resource into state additional resource

public fetchKeyRole(): object source

Gets information for review

Return:

object

keys_roles - Returns keys roles state

public fetchPurchaserSignup(): object source

Gets purchaser information for signup

Return:

object

user - Returns purchaser into state purchaser

public fetchVendorSignup(): object source

Gets vendor information for signup

Return:

object

user - Returns vendor into state vedor

public getCurrentUser(): object source

Gets current user

Return:

object

user - Returns current user logged in

public reject(key_name,: object) source

rejects a user

Params:

NameTypeAttributeDescription
key_name, object

role - information about user to reject

public rejectUser(user: object) source

State changes if a user is rejected

Params:

NameTypeAttributeDescription
user object

object which contains information for us to move out of firebase and remove in our database.

public render(): html source

Loads the details

Return:

html

returns html details

public return_back() source

returns back to previous page