Skip to content

Commit 7856de5

Browse files
authored
Merge pull request Expensify#87592 from Expensify/claude-useValidLoadingIndicatorInReportChangeWorkspacePage
Use ActivityIndicator in ReportChangeWorkspacePage
2 parents 8452484 + f3c68d8 commit 7856de5

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/pages/ReportChangeWorkspacePage.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, {useCallback, useMemo} from 'react';
2+
import {View} from 'react-native';
23
import type {OnyxEntry} from 'react-native-onyx';
3-
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
4+
import ActivityIndicator from '@components/ActivityIndicator';
45
import HeaderWithBackButton from '@components/HeaderWithBackButton';
56
import {useSession} from '@components/OnyxListItemProvider';
67
import ScreenWrapper from '@components/ScreenWrapper';
@@ -194,10 +195,12 @@ function ReportChangeWorkspacePage({report, route}: ReportChangeWorkspacePagePro
194195
}}
195196
/>
196197
{shouldShowLoadingIndicator ? (
197-
<FullScreenLoadingIndicator
198-
style={[styles.flex1, styles.pRelative]}
199-
reasonAttributes={{context: 'ReportChangeWorkspacePage', isLoadingApp: !!isLoadingApp}}
200-
/>
198+
<View style={[styles.flex1, styles.fullScreenLoading]}>
199+
<ActivityIndicator
200+
size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE}
201+
reasonAttributes={{context: 'ReportChangeWorkspacePage', isLoadingApp: !!isLoadingApp}}
202+
/>
203+
</View>
201204
) : (
202205
<SelectionList<WorkspaceListItemType>
203206
ListItem={UserListItem}

0 commit comments

Comments
 (0)