@@ -12,8 +12,6 @@ import TextInput from '@components/TextInput';
1212import useAutoFocusInput from '@hooks/useAutoFocusInput' ;
1313import useLocalize from '@hooks/useLocalize' ;
1414import useOnyx from '@hooks/useOnyx' ;
15- import useStyleUtils from '@hooks/useStyleUtils' ;
16- import useTheme from '@hooks/useTheme' ;
1715import useThemeStyles from '@hooks/useThemeStyles' ;
1816import { getEarliestErrorField } from '@libs/ErrorUtils' ;
1917import { appendCountryCode , formatE164PhoneNumber } from '@libs/LoginUtils' ;
@@ -31,8 +29,6 @@ function PhoneNumberPage() {
3129 const [ isLoadingApp = true ] = useOnyx ( ONYXKEYS . IS_LOADING_APP ) ;
3230 const [ countryCode = CONST . DEFAULT_COUNTRY_CODE ] = useOnyx ( ONYXKEYS . COUNTRY_CODE ) ;
3331 const styles = useThemeStyles ( ) ;
34- const StyleUtils = useStyleUtils ( ) ;
35- const theme = useTheme ( ) ;
3632 const { translate} = useLocalize ( ) ;
3733 const { inputCallbackRef} = useAutoFocusInput ( ) ;
3834 const phoneNumber = privatePersonalDetails ?. phoneNumber ?? '' ;
@@ -92,9 +88,7 @@ function PhoneNumberPage() {
9288 onBackButtonPress = { ( ) => Navigation . goBack ( ) }
9389 />
9490 { isLoadingApp ? (
95- < View
96- style = { [ styles . flex1 , styles . pRelative , styles . justifyContentCenter , styles . alignItemsCenter , StyleUtils . getBackgroundColorStyle ( theme . componentBG ) , { opacity : 0.8 } ] }
97- >
91+ < View style = { [ styles . flex1 , styles . fullScreenLoading ] } >
9892 < ActivityIndicator
9993 size = { CONST . ACTIVITY_INDICATOR_SIZE . LARGE }
10094 reasonAttributes = { { context : 'PhoneNumberPage' , isLoadingApp} satisfies SkeletonSpanReasonAttributes }
0 commit comments