Skip to content

Commit 732ac22

Browse files
authored
Merge pull request Expensify#88741 from Expensify/claude-useActivityIndicatorInWorkspaceOwnerChange
Replace FullscreenLoadingIndicator with ActivityIndicator in WorkspaceOwnerChangeWrapperPage
2 parents c2367f4 + 5715975 commit 732ac22

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/pages/workspace/members/WorkspaceOwnerChangeWrapperPage.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {useEffect} from 'react';
2-
import {View} from 'react-native';
3-
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
2+
import {StyleSheet, View} from 'react-native';
3+
import ActivityIndicator from '@components/ActivityIndicator';
44
import HeaderWithBackButton from '@components/HeaderWithBackButton';
55
import ScreenWrapper from '@components/ScreenWrapper';
66
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
@@ -101,7 +101,14 @@ function WorkspaceOwnerChangeWrapperPage({route, policy, isLoadingPolicy}: Works
101101
}}
102102
/>
103103
<View style={[styles.containerWithSpaceBetween, error !== CONST.POLICY.OWNERSHIP_ERRORS.NO_BILLING_CARD ? styles.ph5 : styles.ph0, styles.pb0]}>
104-
{isLoading && <FullScreenLoadingIndicator reasonAttributes={reasonAttributes} />}
104+
{isLoading && (
105+
<View style={[StyleSheet.absoluteFill, styles.fullScreenLoading]}>
106+
<ActivityIndicator
107+
size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE}
108+
reasonAttributes={reasonAttributes}
109+
/>
110+
</View>
111+
)}
105112
{shouldShowPaymentCardForm && <WorkspaceOwnerPaymentCardForm policy={policy} />}
106113
{!isLoading && !shouldShowPaymentCardForm && (
107114
<WorkspaceOwnerChangeCheck

0 commit comments

Comments
 (0)