Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/pages/ProfilePage.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {hasSeenTourSelector} from '@selectors/Onboarding';
import {Str} from 'expensify-common';
import React, {useEffect} from 'react';
import {View} from 'react-native';
import {StyleSheet, View} from 'react-native';
import type {OnyxCollection, OnyxEntry} from 'react-native-onyx';
import ActivityIndicator from '@components/ActivityIndicator';
import AutoUpdateTime from '@components/AutoUpdateTime';
import Avatar from '@components/Avatar';
import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView';
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import MenuItem from '@components/MenuItem';
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription';
Expand Down Expand Up @@ -297,10 +297,12 @@ function ProfilePage({route}: ProfilePageProps) {
)}
</ScrollView>
{!hasAvatar && isLoading && (
<FullScreenLoadingIndicator
style={styles.flex1}
reasonAttributes={{context: 'ProfilePage', isLoading}}
/>
<View style={[StyleSheet.absoluteFill, styles.fullScreenLoading]}>
<ActivityIndicator
size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE}
reasonAttributes={{context: 'ProfilePage', isLoading}}
/>
</View>
)}
</View>
</FullPageNotFoundView>
Expand Down
Loading