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

LearnHeader

Extends:

react~Component → LearnHeader

Method Summary

Public Methods
public

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

public

Gets additional resource information for signup

public

Gets Notification

public

Gets purchaser information for signup

public

Gets vendor information for signup

public

Gets current user

public

render(): html

Loads the header with different buttons depending on if user is logged in.

public

Sets notification

Public Methods

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 fetchNotificationAdmin(): object source

Gets Notification

Return:

object

notification - Returns notification object

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 render(): html source

Loads the header with different buttons depending on if user is logged in. Or an admin

Return:

html

returns head with specific buttons depending on user

public setNotificationAdmin() source

Sets notification