File tree 1 file changed +8
-3
lines changed
src/pages/signin/ValidateCodeForm
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import { TouchableOpacity , View } from 'react-native' ;
2
+ import { View } from 'react-native' ;
3
3
import PropTypes from 'prop-types' ;
4
4
import { withOnyx } from 'react-native-onyx' ;
5
5
import _ from 'underscore' ;
@@ -24,6 +24,7 @@ import * as User from '../../../libs/actions/User';
24
24
import FormHelpMessage from '../../../components/FormHelpMessage' ;
25
25
import MagicCodeInput from '../../../components/MagicCodeInput' ;
26
26
import Terms from '../Terms' ;
27
+ import PressableWithFeedback from '../../../components/Pressable/PressableWithFeedback' ;
27
28
28
29
const propTypes = {
29
30
/* Onyx Props */
@@ -229,13 +230,17 @@ class BaseValidateCodeForm extends React.Component {
229
230
{ this . state . linkSent ? (
230
231
< Text style = { [ styles . mt2 ] } > { this . props . account . message ? this . props . translate ( this . props . account . message ) : '' } </ Text >
231
232
) : (
232
- < TouchableOpacity
233
+ < PressableWithFeedback
233
234
style = { [ styles . mt2 ] }
234
235
onPress = { this . resendValidateCode }
235
236
underlayColor = { themeColors . componentBG }
237
+ hoverDimmingValue = { 1 }
238
+ pressDimmingValue = { 0.2 }
239
+ accessibilityRole = "button"
240
+ accessibilityLabel = { this . props . translate ( 'validateCodeForm.magicCodeNotReceived' ) }
236
241
>
237
242
< Text style = { [ styles . link ] } > { this . props . translate ( 'validateCodeForm.magicCodeNotReceived' ) } </ Text >
238
- </ TouchableOpacity >
243
+ </ PressableWithFeedback >
239
244
) }
240
245
</ View >
241
246
</ View >
You can’t perform that action at this time.
0 commit comments