You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. # App.js
  2. ### State
  3. | State names | Details |
  4. |:---------------|:--------|
  5. | `peoples` | Array of [`People`](People.md) component |
  6. | `info` | Array for information of all the people involved |
  7. | `paymentChain` | Generated return by the backend server |
  8. | `actionButtons` | Just to store (and display) the 2 given buttons |
  9. | `showResults` | Boolean that will be switched when result is received from server |
  10. ### Functions
  11. | Function names | Details |
  12. |:---------------|:--------|
  13. | `getPaymentChain()` | Parse user input into JSON to be sent to backend and decipher the response from backend |
  14. | `populatePeople(e)` | Fill `peoples` in `{this.state}` with `People` component based on user input in `Main-form` class |
  15. | `updateInfo(e)` | Binded to each [`People`](people.md) as to update `{this.state.info}` when something in the [`People`](people.md) class is updated |
  16. | `httpPost(data, callback)` | Used by `getPaymentChain()` to make `POST` request to [api.breakups.life/paymentChain](https://api.breakups.life) |