Skip to content

Commit

Permalink
migrated WorkspaceInviteMessagePage to PressableWithoutFeedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Jun 13, 2023
1 parent 93957f0 commit acc27a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/workspace/WorkspaceInviteMessagePage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import {Pressable, View} from 'react-native';
import {View} from 'react-native';
import {withOnyx} from 'react-native-onyx';
import _ from 'underscore';
import lodashGet from 'lodash/get';
Expand All @@ -24,6 +24,7 @@ import ROUTES from '../../ROUTES';
import * as Localize from '../../libs/Localize';
import Form from '../../components/Form';
import FullPageNotFoundView from '../../components/BlockingViews/FullPageNotFoundView';
import PressableWithoutFeedback from '../../components/Pressable/PressableWithoutFeedback';

const personalDetailsPropTypes = PropTypes.shape({
/** The login of the person (either email or phone number) */
Expand Down Expand Up @@ -163,16 +164,17 @@ class WorkspaceInviteMessagePage extends React.Component {
submitButtonText={this.props.translate('common.invite')}
enabledWhenOffline
footerContent={
<Pressable
<PressableWithoutFeedback
onPress={this.openPrivacyURL}
accessibilityRole="link"
accessibilityLabel={this.props.translate('common.privacy')}
href={CONST.PRIVACY_URL}
style={[styles.mv2, styles.alignSelfStart]}
>
<View style={[styles.flexRow]}>
<Text style={[styles.mr1, styles.label, styles.link]}>{this.props.translate('common.privacy')}</Text>
</View>
</Pressable>
</PressableWithoutFeedback>
}
>
<View style={[styles.mv4, styles.justifyContentCenter, styles.alignItemsCenter]}>
Expand Down

0 comments on commit acc27a7

Please sign in to comment.