Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return (
  2.             <div className="well">
  3.                 {value.length < 3 && (
  4.                     <div>
  5.                         <a // eslint-disable-line
  6.                             className="btn btn-sm btn-block btn-primary"
  7.                             onClick={this.addAssociation}
  8.                         >
  9.                             Aggiungi associazione <i className="fa fa-plus" />
  10.                         </a>
  11.                         <hr />
  12.                     </div>
  13.                 )}
  14.                 {value.map((a, i) => (
  15.                     <div className="row" key={i}>
  16.                         <div className="col-xs-12">
  17.                             <Select
  18.                                 value={a.type}
  19.                                 options={typeOptions}
  20.                                 onChange={this.changeType.bind(this, i)}
  21.                                 clearable={false}
  22.                             />
  23.                         </div>
  24.                         <div className="col-xs-12">
  25.                             {a.type === 'hotel_id' && (
  26.                                 <SelectHotel
  27.                                     value={a.id}
  28.                                     onChange={this.changeValue.bind(this, i)}
  29.                                 />
  30.                             )}
  31.                            
  32.                             ...cut...
  33.                            
  34.                            
  35.                         </div>
  36.                     </div>
  37.                 ))}
  38.             </div>
  39.         );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement