@@ -130,35 +130,39 @@ export const CaptchaDrawer: FC = () => {
130130 )
131131
132132 return (
133- < ModalBottomDrawer visible = { visible } onClose = { closeScreen } heightRatio = { 1 } >
134- < View style = { styles . container } >
135- < View style = { styles . content } >
136- < Text style = { styles . title } > Prove you are human</ Text >
137- < Text style = { styles . description } > Complete the challenge to continue.</ Text >
138- { status === 'loading' && (
139- < View style = { styles . indicatorRow } >
140- < ActivityIndicator color = { defaultTheme . palette . background . lushSky } />
141- < Text style = { styles . secondaryText } > Loading challenge…</ Text >
142- </ View >
143- ) }
144- { errorMessage && (
145- < View style = { styles . errorBanner } >
146- < Text style = { styles . errorText } > { errorMessage } </ Text >
147- < TouchableOpacity style = { styles . retryButton } onPress = { handleRetry } >
148- < Text style = { styles . retryLabel } > Try again</ Text >
149- </ TouchableOpacity >
150- </ View >
151- ) }
152- < TouchableOpacity
153- onPress = { ( ) => closeScreen ( 'Captcha screen cancelled via button' ) }
154- style = { styles . cancelButton }
155- >
156- < Text style = { styles . cancelLabel } > Cancel</ Text >
157- </ TouchableOpacity >
133+ < >
134+ < ModalBottomDrawer visible = { visible } onClose = { closeScreen } heightRatio = { 1 } >
135+ < View style = { styles . container } >
136+ < View style = { styles . content } >
137+ < Text style = { styles . title } > Prove you are human</ Text >
138+ < Text style = { styles . description } > Complete the challenge to continue.</ Text >
139+ { status === 'loading' && (
140+ < View style = { styles . indicatorRow } >
141+ < ActivityIndicator color = { defaultTheme . palette . background . lushSky } />
142+ < Text style = { styles . secondaryText } > Loading challenge…</ Text >
143+ </ View >
144+ ) }
145+ { errorMessage && (
146+ < View style = { styles . errorBanner } >
147+ < Text style = { styles . errorText } > { errorMessage } </ Text >
148+ < TouchableOpacity style = { styles . retryButton } onPress = { handleRetry } >
149+ < Text style = { styles . retryLabel } > Try again</ Text >
150+ </ TouchableOpacity >
151+ </ View >
152+ ) }
153+ < TouchableOpacity
154+ onPress = { ( ) => closeScreen ( 'Captcha screen cancelled via button' ) }
155+ style = { styles . cancelButton }
156+ >
157+ < Text style = { styles . cancelLabel } > Cancel</ Text >
158+ </ TouchableOpacity >
159+ </ View >
158160 </ View >
161+ </ ModalBottomDrawer >
162+ { siteKey !== '' && (
159163 < ConfirmHcaptcha ref = { captchaRef } siteKey = { siteKey } onMessage = { handleMessage } size = { 'invisible' } />
160- </ View >
161- </ ModalBottomDrawer >
164+ ) }
165+ </ >
162166 )
163167}
164168
0 commit comments