Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const ConfirmDataEditor = props => {
  2.   if (!props.popup) {
  3.     return null;
  4.   } else {
  5.     return (
  6.       <div className="search-result-confirm-popup white-div--large">
  7.         <h2 className="admin-subtitle">
  8.           {Strings("these_data_will_be_modified")}
  9.         </h2>
  10.         ["name","email","signedDataPolicy","mentorApplication","FRH","BTH"].map(value => !!props[value] ?
  11.           <table>
  12.             <tr className="confirm-table-row">
  13.               <td className="confirm-table-row-label">
  14.               {
  15.               ["signedDataPolicy", "mentorApplication"].includes(value) ?
  16.               <i className="material-icons">check_circle</i> :
  17.               Strings(value)
  18.               }
  19.               </td>
  20.               <td className="confirm-table-row-value">{props[value]}</td>
  21.             </tr>
  22.           </table> : null)
  23.         <div className="submit-button-container">
  24.           <button onClick={props.handleClickOnClose} className="hollow_button">
  25.             {Strings("cancel")}
  26.           </button>
  27.           <button className="button" onClick={props.dataOnSubmit}>
  28.             {Strings("yes")}
  29.           </button>
  30.         </div>
  31.       </div>
  32.     );
  33.   }
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement