|
1 | 1 | import React, {useCallback, useEffect, useMemo, useState} from 'react'; |
2 | | -import {View} from 'react-native'; |
| 2 | +import {InteractionManager, View} from 'react-native'; |
3 | 3 | import type {GestureResponderEvent} from 'react-native/Libraries/Types/CoreEventTypes'; |
4 | 4 | import type {ValueOf} from 'type-fest'; |
5 | 5 | import Button from '@components/Button'; |
@@ -31,6 +31,7 @@ import WorkspaceMemberDetailsRoleSelectionModal from '@pages/workspace/Workspace |
31 | 31 | import type {ListItemType} from '@pages/workspace/WorkspaceMemberRoleSelectionModal'; |
32 | 32 | import CONST from '@src/CONST'; |
33 | 33 | import ONYXKEYS from '@src/ONYXKEYS'; |
| 34 | +import ROUTES from '@src/ROUTES'; |
34 | 35 | import type SCREENS from '@src/SCREENS'; |
35 | 36 |
|
36 | 37 | type ImportedMembersConfirmationPageProps = PlatformStackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.MEMBERS_IMPORTED>; |
@@ -205,6 +206,10 @@ function ImportedMembersConfirmationPage({route}: ImportedMembersConfirmationPag |
205 | 206 | isVisible={spreadsheet?.shouldFinalModalBeOpened} |
206 | 207 | closeImportPageAndModal={closeImportPageAndModal} |
207 | 208 | shouldHandleNavigationBack={false} |
| 209 | + onModalHide={() => { |
| 210 | + // eslint-disable-next-line @typescript-eslint/no-deprecated |
| 211 | + InteractionManager.runAfterInteractions(() => Navigation.goBack(ROUTES.WORKSPACE_MEMBERS.getRoute(policyID))); |
| 212 | + }} |
208 | 213 | /> |
209 | 214 | <WorkspaceMemberDetailsRoleSelectionModal |
210 | 215 | isVisible={isRoleSelectionModalVisible} |
|
0 commit comments