Guest User

Untitled

a guest
Nov 15th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. render() {
  2.  
  3. var accounts = this.props.accounts.map((account, index) =>
  4. <li className="list-group-item" key={index}>{account[0]}<br />
  5. <button type="button" >Go to Login</button>
  6. <button type="button" >Log out</button>
  7. </li>
  8. );
  9.  
  10. return (
  11.  
  12. {accounts && (
  13. <ul className="accounts-list list-group">{accounts}</ul>
  14. )}
  15.  
  16. )
  17.  
  18. }
  19.  
  20. {
  21. "offer": [
  22. "id",
  23. "price-input"
  24. ],
  25. "offer_message": [
  26. "id",
  27. "msg-textarea"
  28. ]
  29. }
  30.  
  31. forms = Object.entries(this.props.forms).forEach(([key, value]) =>
  32.  
  33. <div className="form-group">
  34. {value}
  35. </div>
  36.  
  37. )
  38.  
  39. return (
  40.  
  41. {forms}
  42.  
  43. )
  44.  
  45. =>
  46. (
  47. <div className="form-group">
  48. {value}
  49. </div>
  50. )
Add Comment
Please, Sign In to add comment