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 ?
: uploadButtonKtp}
-
-
-
-
- {upload_photo ?
: uploadButtonPhoto}
-
-
+ {/**/}
+ {/**/}
+ {/*{upload_ktp ?
: uploadButtonKtp}*/}
+ {/**/}
+ {/**/}
+ {/**/}
+ {/**/}
+ {/*{upload_photo ?
: 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*/}
+ {/*}*/}
+ {/*})}/>*/}
+ {/**/}
+ {/**/}
+ {/**/}
+ {/**/}