Home Reference Source Repository
public class | source

Admin

Extends:

react~Component → Admin

Method Summary

Public Methods
public

approve(key_name: object, role: object)

approves type of users.

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 purchaser information for signup

public

Gets vendor information for signup

public

Gets the current user

public

reject(key_name: object, role: object)

reject type of users.

public

State changes if a user is rejected

public

render(): html

Loads the emails for and buttons.

public

review(key_name: object, role: object)

review type of users.

public

Stores information of key and role into db

Public Methods

public approve(key_name: object, role: object) source

approves type of users.

Params:

NameTypeAttributeDescription
key_name object

takes key name of user in database and approves user

role object

takes role to determine which 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 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 the current user

Return:

object

user - Returns current user into state current user

public reject(key_name: object, role: object) source

reject type of users.

Params:

NameTypeAttributeDescription
key_name object

takes key name of user in database and rejects user

role object

takes role to determine which 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 emails for and buttons.

Return:

html

returns button and links and emails

public review(key_name: object, role: object) source

review type of users.

Params:

NameTypeAttributeDescription
key_name object

takes key name of user in database and review user

role object

takes role to determine which user to review

public storeKeyRole(data: object) source

Stores information of key and role into db

Params:

NameTypeAttributeDescription
data object

contains information about the key and role of desired user