Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17021 - migrate ResendValidationForm to PressableWithFeedback #19528

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions src/pages/signin/ResendValidationForm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import _ from 'underscore';
import {TouchableOpacity, View} from 'react-native';
import {View} from 'react-native';
import {withOnyx} from 'react-native-onyx';
import PropTypes from 'prop-types';
import Str from 'expensify-common/lib/str';
Expand All @@ -17,6 +17,7 @@ import * as ReportUtils from '../../libs/ReportUtils';
import networkPropTypes from '../../components/networkPropTypes';
import {withNetwork} from '../../components/OnyxProvider';
import DotIndicatorMessage from '../../components/DotIndicatorMessage';
import PressableWithFeedback from '../../components/Pressable/PressableWithFeedback';
import CONST from '../../CONST';

const propTypes = {
Expand Down Expand Up @@ -91,9 +92,16 @@ const ResendValidationForm = (props) => {
/>
)}
<View style={[styles.mb4, styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter]}>
<TouchableOpacity onPress={() => redirectToSignIn()}>
<PressableWithFeedback
onPress={() => redirectToSignIn()}
accessibilityRole="button"
accessibilityLabel={props.translate('common.back')}
// disable hover dim for switch
hoverDimmingValue={1}
pressDimmingValue={0.2}
>
<Text style={[styles.link]}>{props.translate('common.back')}</Text>
</TouchableOpacity>
</PressableWithFeedback>
<Button
medium
success
Expand Down