Example #1
0
 openModal(){
   const token = this.props.token
   ModalManager.open(<CreateAlbumModal
       onRequestClose={()=>true}
       token={token}
       style={STYLE}
       createAlbum={this.props.actions.dataCreateAlbum.bind(this)}/>)
 }
Example #2
0
 handleSubmit() {
   const photo = this.props.photo;
   photo.caption = this.state.body;
   this.props.createPhoto(photo);
   ModalManager.close();
 }