Skip to content

Commit

Permalink
fix(WorkspaceInvitePage): submit form with
Browse files Browse the repository at this point in the history
  • Loading branch information
mdneyazahmad committed Dec 30, 2022
1 parent 18f9f57 commit ac9019d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/workspace/WorkspaceInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import ONYXKEYS from '../../ONYXKEYS';
import * as Policy from '../../libs/actions/Policy';
import TextInput from '../../components/TextInput';
import FormAlertWithSubmitButton from '../../components/FormAlertWithSubmitButton';
import FormSubmit from '../../components/FormSubmit';
import OptionsSelector from '../../components/OptionsSelector';
import * as OptionsListUtils from '../../libs/OptionsListUtils';
import CONST from '../../CONST';
Expand Down Expand Up @@ -285,7 +286,7 @@ class WorkspaceInvitePage extends React.Component {
shouldShow={_.isEmpty(this.props.policy)}
onBackButtonPress={() => Navigation.navigate(ROUTES.SETTINGS_WORKSPACES)}
>
<>
<FormSubmit style={[styles.flex1]} onSubmit={this.inviteUser}>
<HeaderWithCloseButton
title={this.props.translate('workspace.invite.invitePeople')}
subtitle={policyName}
Expand Down Expand Up @@ -338,6 +339,7 @@ class WorkspaceInvitePage extends React.Component {
message={this.props.policy.alertMessage}
containerStyles={[styles.flexReset, styles.mb0, styles.flexGrow0, styles.flexShrink0, styles.flexBasisAuto]}
enabledWhenOffline
disablePressOnEnter
/>
<Pressable
onPress={this.openPrivacyURL}
Expand All @@ -356,7 +358,7 @@ class WorkspaceInvitePage extends React.Component {
)}
</Pressable>
</View>
</>
</FormSubmit>
</FullPageNotFoundView>
)}
</ScreenWrapper>
Expand Down

0 comments on commit ac9019d

Please sign in to comment.