Class: ModalForm

ModalForm(props)

Edit Business Profile Form

Constructor

new ModalForm(props)

Parameters:
Name Type Description
props object

props from the BusinessPage component

Source:

Members

componentWillReceiveProps

update the state when props change

Source:

handleAddTimeline

insert one more timeline event on this.state at the end of the timeline list

Source:

handleDateUpdate

update the state when timeline date change

Source:

handleDeleteTimeline

delet one timeline event on this.state based on index

Source:

handleInfoUpdate

update the state when description change

Source:

handleSubmit

handel submit event after click submit, if success, it will pop up "successfully update" otherwise, it will shows "update fail"

Source:

handleTitleUpdate

update the state when event title change

Source:

handleUpdate

Source:

type :String

a string that represents address ID from the dynamoDB

Type:
  • String
Source:

type :String

a string that represents the second part of the city of address

Type:
  • String
Source:

type :String

a string that represents the second part of the postal code of address

Type:
  • String
Source:

type :String

a string that represents the second part of the state of address

Type:
  • String
Source:

type :String

a string that represents how many timelines events

Type:
  • String
Source:

type :String

a string that indicates if the timeline change, it has false as default value and it will change to true if any timeline event change triggers

Type:
  • String
Source:

type :String

a string that represents the first part of the street address

Type:
  • String
Source:

type :String

a string that represents the second part of the street address

Type:
  • String
Source:

type :String

a string that indicates if the address change, it has false as default value and it will change to true if any address event change triggers

Type:
  • String
Source:

updateTimeline

update timeline on dynamodb,add delete or update

Source: