From e178fe8410e15c32ac828feafb9a34ad73a0a509 Mon Sep 17 00:00:00 2001 From: Hasta Ragil Saputra Date: Thu, 31 Jan 2019 21:33:09 +0700 Subject: [PATCH] fix: register flow --- src/common/pages/RegisterNew/index.js | 220 +++++++++++++------------- 1 file changed, 110 insertions(+), 110 deletions(-) diff --git a/src/common/pages/RegisterNew/index.js b/src/common/pages/RegisterNew/index.js index 22b9208..a9c1536 100644 --- a/src/common/pages/RegisterNew/index.js +++ b/src/common/pages/RegisterNew/index.js @@ -130,13 +130,13 @@ class RegisterPage extends React.Component { register = () => { - if (this.state.upload_photo === '') { - return message.warning("please upload photo"); - } - - if (this.state.upload_ktp === '') { - return message.warning("please upload ktp"); - } + // if (this.state.upload_photo === '') { + // return message.warning("please upload photo"); + // } + // + // if (this.state.upload_ktp === '') { + // return message.warning("please upload ktp"); + // } this.setState({ isLoading: true }); @@ -146,14 +146,14 @@ class RegisterPage extends React.Component { phone_number: this.state.phone_number, password: this.state.password, nric_number: this.state.no_ktp, - nric_photo_path: this.state.upload_ktp, - photo: this.state.upload_photo, - address: this.state.address, - province_id: this.state.province, - city_id: this.state.city, - district_id: this.state.district, - subdistrict_id: this.state.subdistrict, - zip_code: this.state.zip_code, + // nric_photo_path: this.state.upload_ktp, + // photo: this.state.upload_photo, + // address: this.state.address, + // province_id: this.state.province, + // city_id: this.state.city, + // district_id: this.state.district, + // subdistrict_id: this.state.subdistrict, + // zip_code: this.state.zip_code, referal: this.state.query.referal, additional_data: {} }; @@ -366,108 +366,108 @@ class RegisterPage extends React.Component { /> - - - {upload_ktp ? avatar : uploadButtonKtp} - - - - - {upload_photo ? avatar : uploadButtonPhoto} - - + {/**/} + {/**/} + {/*{upload_ktp ? avatar : uploadButtonKtp}*/} + {/**/} + {/**/} + {/**/} + {/**/} + {/*{upload_photo ? avatar : uploadButtonPhoto}*/} + {/**/} + {/**/} - - - - - this.onChangeProvince(value)} - suggestions={this.place.provinces.map(p => { + {/**/} + {/**/} + {/**/} + {/**/} + {/* this.onChangeProvince(value)}*/} + {/*suggestions={this.place.provinces.map(p => {*/} - return { - label: p.name, - value: p.id - } - })}/> - + {/*return {*/} + {/*label: p.name,*/} + {/*value: p.id*/} + {/*}*/} + {/*})}/>*/} + {/**/} - - this.onChangeCity(value)} - suggestions={this.place.cities.map(p => { + {/**/} + {/* this.onChangeCity(value)}*/} + {/*suggestions={this.place.cities.map(p => {*/} - return { - label: p.name, - value: p.id - } - })}/> - - - this.onChangeDistrict(value)} - suggestions={this.place.districts.map(p => { + {/*return {*/} + {/*label: p.name,*/} + {/*value: p.id*/} + {/*}*/} + {/*})}/>*/} + {/**/} + {/**/} + {/* this.onChangeDistrict(value)}*/} + {/*suggestions={this.place.districts.map(p => {*/} - return { - label: p.name, - value: p.id - } - })}/> - + {/*return {*/} + {/*label: p.name,*/} + {/*value: p.id*/} + {/*}*/} + {/*})}/>*/} + {/**/} - - this.onChangeSubdistrict(value)} - suggestions={this.place.subdistricts.map(p => { + {/**/} + {/* this.onChangeSubdistrict(value)}*/} + {/*suggestions={this.place.subdistricts.map(p => {*/} - return { - label: p.name, - value: p.id - } - })}/> - - - - + {/*return {*/} + {/*label: p.name,*/} + {/*value: p.id*/} + {/*}*/} + {/*})}/>*/} + {/**/} + {/**/} + {/**/} + {/**/}