Skip to content

Commit efdf88c

Browse files
authored
Merge pull request Expensify#85519 from Expensify/claude-useActivityIndicatorInNewReportWorkspaceSelection
Replace FullScreenLoadingIndicator with ActivityIndicator in NewReportWorkspaceSelectionPage
2 parents 9597b54 + 6c1c496 commit efdf88c

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';
@@ -267,10 +268,12 @@ function NewReportWorkspaceSelectionPage({route}: NewReportWorkspaceSelectionPag
267268
onBackButtonPress={Navigation.goBack}
268269
/>
269270
{shouldShowLoadingIndicator ? (
270-
<FullScreenLoadingIndicator
271-
style={[styles.flex1, styles.pRelative]}
272-
reasonAttributes={{context: 'NewReportWorkspaceSelectionPage', isLoadingApp: !!isLoadingApp}}
273-
/>
271+
<View style={[styles.flex1, styles.fullScreenLoading]}>
272+
<ActivityIndicator
273+
size="large"
274+
reasonAttributes={{context: 'NewReportWorkspaceSelectionPage', isLoadingApp: !!isLoadingApp}}
275+
/>
276+
</View>
274277
) : (
275278
<>
276279
<Text style={[styles.ph5, styles.mb3]}>{translate('report.newReport.chooseWorkspace')}</Text>

0 commit comments

Comments
 (0)