Skip to content

Commit

Permalink
Merge pull request #19622 from robertKozik/17022-migrate-BaseValidate…
Browse files Browse the repository at this point in the history
…CodeForm

17022 — migrate BaseValidateCodeForm to PressableWithFeedback
  • Loading branch information
puneetlath authored May 29, 2023
2 parents 12d2f3c + 3db67f3 commit 414dc10
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/pages/signin/ValidateCodeForm/BaseValidateCodeForm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {TouchableOpacity, View} from 'react-native';
import {View} from 'react-native';
import PropTypes from 'prop-types';
import {withOnyx} from 'react-native-onyx';
import _ from 'underscore';
Expand All @@ -24,6 +24,7 @@ import * as User from '../../../libs/actions/User';
import FormHelpMessage from '../../../components/FormHelpMessage';
import MagicCodeInput from '../../../components/MagicCodeInput';
import Terms from '../Terms';
import PressableWithFeedback from '../../../components/Pressable/PressableWithFeedback';

const propTypes = {
/* Onyx Props */
Expand Down Expand Up @@ -229,13 +230,17 @@ class BaseValidateCodeForm extends React.Component {
{this.state.linkSent ? (
<Text style={[styles.mt2]}>{this.props.account.message ? this.props.translate(this.props.account.message) : ''}</Text>
) : (
<TouchableOpacity
<PressableWithFeedback
style={[styles.mt2]}
onPress={this.resendValidateCode}
underlayColor={themeColors.componentBG}
hoverDimmingValue={1}
pressDimmingValue={0.2}
accessibilityRole="button"
accessibilityLabel={this.props.translate('validateCodeForm.magicCodeNotReceived')}
>
<Text style={[styles.link]}>{this.props.translate('validateCodeForm.magicCodeNotReceived')}</Text>
</TouchableOpacity>
</PressableWithFeedback>
)}
</View>
</View>
Expand Down

0 comments on commit 414dc10

Please sign in to comment.