@@ -122,18 +122,22 @@ class LeftPage extends PureComponent
122122 style = { styles . uploadText }
123123 dictionary = { `${ lang } .leftpage.please-wait-uploading` }
124124 />
125+
125126 < ActivityIndicator style = { { marginBottom : 10 } } />
127+
126128 < Text style = { styles . uploadCount } >
127129 { this . _getRemainingUploadCount ( ) } /{ ' ' }
128130 { this . props . totalImagesToUpload }
129131 </ Text >
132+
130133 { /* <Progress.Circle
131134 progress={this.props.galleryUploadProgress}
132135 showsText={true}
133136 size={100}
134137 style={{ marginBottom: 30 }}
135138 /> */ }
136139 { /* Todo - translate cancel */ }
140+
137141 < Button onPress = { this . _toggleUpload . bind ( this ) } title = "Cancel" />
138142 </ View >
139143 )
@@ -166,12 +170,13 @@ class LeftPage extends PureComponent
166170
167171 < View style = { { flexDirection : 'row' } } >
168172 < TouchableWithoutFeedback
169- onPress = { this . _toggleThankYou . bind ( this ) } >
173+ onPress = { this . _toggleThankYou . bind ( this ) }
174+ >
170175 < View style = { styles . thankYouButton } >
171- < TransText
172- style = { styles . normalWhiteText }
173- dictionary = { `${ lang } .leftpage.close` }
174- />
176+ < TransText
177+ style = { styles . normalWhiteText }
178+ dictionary = { `${ lang } .leftpage.close` }
179+ />
175180 </ View >
176181 </ TouchableWithoutFeedback >
177182 </ View >
@@ -203,6 +208,7 @@ class LeftPage extends PureComponent
203208 isSelecting = { this . props . isSelecting }
204209 webImages = { this . props . webImages }
205210 />
211+
206212 < View style = { styles . bottomContainer } > { this . renderBottomTabBar ( ) } </ View >
207213 </ SafeAreaView >
208214 < SafeAreaView style = { { flex : 0 , backgroundColor : 'white' } } />
@@ -238,8 +244,6 @@ class LeftPage extends PureComponent
238244
239245 // async-storage photos & gallery set
240246 setTimeout ( ( ) => {
241- console . log ( this . props . photos ) ;
242- console . log ( this . props . gallery ) ;
243247 AsyncStorage . setItem ( 'openlittermap-photos' , JSON . stringify ( this . props . photos ) ) ;
244248 AsyncStorage . setItem ( 'openlittermap-gallery' , JSON . stringify ( this . props . gallery ) ) ;
245249 } , 1000 ) ;
@@ -449,13 +453,9 @@ class LeftPage extends PureComponent
449453 */
450454 uploadPhotos = async ( ) => {
451455
452- console . log ( 'uploadPhotos1' ) ;
453-
454456 this . props . resetGalleryToUpload ( ) ; // gallery
455457 this . props . resetPhotosToUpload ( ) ; // photo
456458
457- console . log ( 'uploadPhotos2' ) ;
458-
459459 let galleryCount = 0 ;
460460 let sessionCount = 0 ;
461461 let model = '' ;
@@ -470,8 +470,6 @@ class LeftPage extends PureComponent
470470 if ( item . litter ) sessionCount ++ ;
471471 } ) ;
472472
473- console . log ( 'uploadPhotos3' ) ;
474-
475473 const totalCount = galleryCount + sessionCount ;
476474 // console.log(({ totalCount }));
477475
@@ -482,7 +480,6 @@ class LeftPage extends PureComponent
482480 // 2. Open Upload Modal
483481 this . props . toggleUpload ( ) ;
484482
485- console . log ( 'uploadPhotos4' ) ;
486483 // 3. Upload Photos
487484 // Photo Gallery - On Device
488485 // this.props.totalTaggedGalleryCount > 0
@@ -541,8 +538,6 @@ class LeftPage extends PureComponent
541538 }
542539 }
543540
544- console . log ( 'uploadPhotos5' ) ;
545-
546541 if ( this . props . totalTaggedSessionCount > 0 )
547542 {
548543 // upload session photos
@@ -587,8 +582,6 @@ class LeftPage extends PureComponent
587582 }
588583 }
589584
590-
591- console . log ( 'uploadPhotos6' ) ;
592585 // Last step - if all photos have been deleted, close modal
593586 if ( this . _getRemainingUploadCount ( ) === this . props . totalImagesToUpload )
594587 {
@@ -605,7 +598,6 @@ class LeftPage extends PureComponent
605598 AsyncStorage . setItem ( 'openlittermap-photos' , JSON . stringify ( this . props . photos ) ) ;
606599 AsyncStorage . setItem ( 'openlittermap-gallery' , JSON . stringify ( this . props . gallery ) ) ;
607600 } , 1000 ) ;
608- console . log ( 'uploadPhotos7' ) ;
609601 } ;
610602
611603 /**
0 commit comments