Skip to content

Commit

Permalink
Merge pull request #19732 from robertKozik/17023-migrate-PasswordForm
Browse files Browse the repository at this point in the history
17023 — migrate PasswordForm to PressableWithFeedback
  • Loading branch information
AndrewGable authored May 30, 2023
2 parents 933264a + c1f3ddd commit 79ddcab
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pages/signin/PasswordForm.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 @@ -23,6 +23,7 @@ import {withNetwork} from '../../components/OnyxProvider';
import networkPropTypes from '../../components/networkPropTypes';
import FormHelpMessage from '../../components/FormHelpMessage';
import Terms from './Terms';
import PressableWithFeedback from '../../components/Pressable/PressableWithFeedback';

const propTypes = {
/* Onyx Props */
Expand Down Expand Up @@ -191,12 +192,15 @@ class PasswordForm extends React.Component {
hasError={passwordFieldHasError}
/>
<View style={[styles.changeExpensifyLoginLinkContainer]}>
<TouchableOpacity
<PressableWithFeedback
style={[styles.mt2]}
onPress={this.resetPassword}
accessibilityRole="link"
accessibilityLabel={this.props.translate('passwordForm.forgot')}
hoverDimmingValue={1}
>
<Text style={[styles.link]}>{this.props.translate('passwordForm.forgot')}</Text>
</TouchableOpacity>
</PressableWithFeedback>
</View>
</View>

Expand Down

0 comments on commit 79ddcab

Please sign in to comment.