Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. if(this.props.displayModal){
  2. return(
  3. <div className="modBackdrop">
  4. <div className="modal-fade" aria-hidden="true" role="dialog" tabIndex="-1" id="companyModal">
  5. <div className="modal-dialog" role="document">
  6. <div className="modal-content">
  7. <div className="modal-header">
  8. <h3 className="modal-title">{readyForDisplay.fields.Company_Name}</h3>
  9. <button type="button" className="close" onClick={this.onModalClick}>
  10. <span aria-hidden="true">&times;</span>
  11. </button>
  12. </div>
  13. <div className="modal-body">
  14. {this.constructModalBody(readyForDisplay)}
  15. </div>
  16. <div className="modal-footer">
  17. <button type="button" className="btn btn-primary" onClick={this.feedbackLink(readyForDisplay.fields.Company_Name)} id="feedbackButton">Update Profile</button>
  18. <button type="button" className="btn btn-success ml-auto" style={{backgroundColor: '#07d585'}} onClick={this.onModalClick}>Close</button>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. );
  25. }else{
  26. return(null);
  27. }
  28.  
  29. feedbackLink(prefill){
  30.  
  31.  
  32. let link = "removed for StackOverflow" + prefill
  33. window.open(link)
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement