Skip to content

Commit c31fbc9

Browse files
MelvinBotsituchan
andcommitted
Replace FullscreenLoadingIndicator with ActivityIndicator in WorkspaceOwnerChangeWrapperPage
The workspace owner change flow screen has a HeaderWithBackButton, so using FullscreenLoadingIndicator would show duplicate back controls once shouldUseGoBackButton is enabled by default. Replace it with an ActivityIndicator wrapped in a View that reproduces the same layout and background styling (absoluteFillObject, fullScreenLoading, w100). Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
1 parent f094ea5 commit c31fbc9

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.absoluteFillObject, styles.fullScreenLoading, styles.w100]}>
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)