Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(this.props.displayModal){
- return(
- <div className="modBackdrop">
- <div className="modal-fade" aria-hidden="true" role="dialog" tabIndex="-1" id="companyModal">
- <div className="modal-dialog" role="document">
- <div className="modal-content">
- <div className="modal-header">
- <h3 className="modal-title">{readyForDisplay.fields.Company_Name}</h3>
- <button type="button" className="close" onClick={this.onModalClick}>
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div className="modal-body">
- {this.constructModalBody(readyForDisplay)}
- </div>
- <div className="modal-footer">
- <button type="button" className="btn btn-primary" onClick={this.feedbackLink(readyForDisplay.fields.Company_Name)} id="feedbackButton">Update Profile</button>
- <button type="button" className="btn btn-success ml-auto" style={{backgroundColor: '#07d585'}} onClick={this.onModalClick}>Close</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- );
- }else{
- return(null);
- }
- feedbackLink(prefill){
- let link = "removed for StackOverflow" + prefill
- window.open(link)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement