Skip to content

Commit

Permalink
Merge pull request #20657 from Skalakid/20607-migrate-WorkspaceInvite…
Browse files Browse the repository at this point in the history
…MessagePage

20607 - migrated WorkspaceInviteMessagePage to PressableWithoutFeedback
  • Loading branch information
roryabraham authored Jun 14, 2023
2 parents a275e3d + acc27a7 commit 0a471b0
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 0a471b0

Please sign in to comment.