Class: JobDescription

JobDescription()

The class JobDescription will render the page of the job that user is interested It will render the job information tab (data from AWS dynamoDB) It will render the company information tab (data from AWS dynamoDB) It will render the location tab (data from AWS dynamoDB with google map API) It will render the applicant list only for the employer who posted the job

Constructor

new JobDescription()

Source:

Members

applyJob

Update employee's applied job data Condtion that check if the user applied to the job alreadu: yes: don't update the applied job data no: update the applied job data Both conditions allow user to choose either stay at the page or go to profile page

Source:

componentDidMount

Fetch all job information data from AWS by using job id Update the job inforamtion by using job id Check if the user is employer or employee: if user is the company that posted the job: yes: display the applicant list tab(with applicants' info) and hide the apply now button no: just hide the apply now button if user is employee: only display the aaply now button

Source:

loadingStatus

Source:

state :Object

the state object to store all data to display on the page

Type:
  • Object
Source:

visibleStatus

Source:

Methods

render()

Begin to render and populated the page

Source: