Skip to content

Commit 6c1c496

Browse files
MelvinBotsituchan
andcommitted
Replace FullScreenLoadingIndicator with ActivityIndicator in NewReportWorkspaceSelectionPage
Use a View-wrapped ActivityIndicator instead of FullScreenLoadingIndicator to avoid a duplicate back control when shouldUseGoBackButton becomes the default. Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
1 parent b8f9a32 commit 6c1c496

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/pages/NewReportWorkspaceSelectionPage.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {accountIDSelector, emailSelector} from '@selectors/Session';
22
import React, {useEffect, useState} from 'react';
3+
import {View} from 'react-native';
34
import type {OnyxCollection} from 'react-native-onyx';
4-
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
5+
import ActivityIndicator from '@components/ActivityIndicator';
56
import HeaderWithBackButton from '@components/HeaderWithBackButton';
67
import ScreenWrapper from '@components/ScreenWrapper';
78
import {useSearchActionsContext, useSearchStateContext} from '@components/Search/SearchContext';
@@ -268,10 +269,12 @@ function NewReportWorkspaceSelectionPage({route}: NewReportWorkspaceSelectionPag
268269
/>
269270
{CreateReportConfirmationModal}
270271
{shouldShowLoadingIndicator ? (
271-
<FullScreenLoadingIndicator
272-
style={[styles.flex1, styles.pRelative]}
273-
reasonAttributes={{context: 'NewReportWorkspaceSelectionPage', isLoadingApp: !!isLoadingApp}}
274-
/>
272+
<View style={[styles.flex1, styles.fullScreenLoading]}>
273+
<ActivityIndicator
274+
size="large"
275+
reasonAttributes={{context: 'NewReportWorkspaceSelectionPage', isLoadingApp: !!isLoadingApp}}
276+
/>
277+
</View>
275278
) : (
276279
<>
277280
<Text style={[styles.ph5, styles.mb3]}>{translate('report.newReport.chooseWorkspace')}</Text>

0 commit comments

Comments
 (0)