|
1 | 1 | import type {ReactNode} from 'react'; |
2 | 2 | import React from 'react'; |
3 | 3 | import {View} from 'react-native'; |
| 4 | +import ActivityIndicator from '@components/ActivityIndicator'; |
4 | 5 | import DelegateNoAccessWrapper from '@components/DelegateNoAccessWrapper'; |
5 | 6 | import FormProvider from '@components/Form/FormProvider'; |
6 | 7 | import InputWrapper from '@components/Form/InputWrapper'; |
7 | 8 | import type {FormInputErrors, FormOnyxValues} from '@components/Form/types'; |
8 | | -import FullscreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; |
9 | 9 | import HeaderWithBackButton from '@components/HeaderWithBackButton'; |
10 | 10 | import type {LocalizedTranslate} from '@components/LocaleContextProvider'; |
11 | 11 | import ScreenWrapper from '@components/ScreenWrapper'; |
@@ -109,10 +109,12 @@ function BaseLegalNamePage<TFormID extends OnyxFormKey>({ |
109 | 109 | onBackButtonPress={onBackButtonPress ?? (() => Navigation.goBack())} |
110 | 110 | /> |
111 | 111 | {isLoadingApp ? ( |
112 | | - <FullscreenLoadingIndicator |
113 | | - style={[styles.flex1, styles.pRelative]} |
114 | | - reasonAttributes={{context: 'BaseLegalNamePage', isLoadingApp} satisfies SkeletonSpanReasonAttributes} |
115 | | - /> |
| 112 | + <View style={[styles.flex1, styles.fullScreenLoading]}> |
| 113 | + <ActivityIndicator |
| 114 | + size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE} |
| 115 | + reasonAttributes={{context: 'BaseLegalNamePage', isLoadingApp} satisfies SkeletonSpanReasonAttributes} |
| 116 | + /> |
| 117 | + </View> |
116 | 118 | ) : ( |
117 | 119 | <FormProvider |
118 | 120 | style={[styles.flexGrow1, styles.ph5]} |
|
0 commit comments