Skip to content

Commit 414dc10

Browse files
authored
Merge pull request #19622 from robertKozik/17022-migrate-BaseValidateCodeForm
17022 — migrate BaseValidateCodeForm to PressableWithFeedback
2 parents 12d2f3c + 3db67f3 commit 414dc10

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/pages/signin/ValidateCodeForm/BaseValidateCodeForm.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import {TouchableOpacity, View} from 'react-native';
2+
import {View} from 'react-native';
33
import PropTypes from 'prop-types';
44
import {withOnyx} from 'react-native-onyx';
55
import _ from 'underscore';
@@ -24,6 +24,7 @@ import * as User from '../../../libs/actions/User';
2424
import FormHelpMessage from '../../../components/FormHelpMessage';
2525
import MagicCodeInput from '../../../components/MagicCodeInput';
2626
import Terms from '../Terms';
27+
import PressableWithFeedback from '../../../components/Pressable/PressableWithFeedback';
2728

2829
const propTypes = {
2930
/* Onyx Props */
@@ -229,13 +230,17 @@ class BaseValidateCodeForm extends React.Component {
229230
{this.state.linkSent ? (
230231
<Text style={[styles.mt2]}>{this.props.account.message ? this.props.translate(this.props.account.message) : ''}</Text>
231232
) : (
232-
<TouchableOpacity
233+
<PressableWithFeedback
233234
style={[styles.mt2]}
234235
onPress={this.resendValidateCode}
235236
underlayColor={themeColors.componentBG}
237+
hoverDimmingValue={1}
238+
pressDimmingValue={0.2}
239+
accessibilityRole="button"
240+
accessibilityLabel={this.props.translate('validateCodeForm.magicCodeNotReceived')}
236241
>
237242
<Text style={[styles.link]}>{this.props.translate('validateCodeForm.magicCodeNotReceived')}</Text>
238-
</TouchableOpacity>
243+
</PressableWithFeedback>
239244
)}
240245
</View>
241246
</View>

0 commit comments

Comments
 (0)