Skip to content

Commit fdc8a3d

Browse files
MelvinBotsituchan
andcommitted
Replace FullScreenLoadingIndicator with ActivityIndicator in WorkspacesListPage
As part of the loading indicator standardization (Expensify#69850), replace FullScreenLoadingIndicator with a plain ActivityIndicator wrapped in a View with fullScreenLoading styles in WorkspacesListPage.tsx. This prevents the upcoming shouldUseGoBackButton default from showing duplicate back controls when TopBar and NavigationTabBar are already visible. Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
1 parent b8f9a32 commit fdc8a3d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/pages/workspace/WorkspacesListPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ConfirmModal from '@components/ConfirmModal';
88
import type {DomainItem} from '@components/Domain/DomainMenuItem';
99
import DomainMenuItem from '@components/Domain/DomainMenuItem';
1010
import DomainsEmptyStateComponent from '@components/DomainsEmptyStateComponent';
11-
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
11+
import ActivityIndicator from '@components/ActivityIndicator';
1212
import type {MenuItemProps} from '@components/MenuItem';
1313
import NavigationTabBar from '@components/Navigation/NavigationTabBar';
1414
import NAVIGATION_TABS from '@components/Navigation/NavigationTabBar/NAVIGATION_TABS';
@@ -738,9 +738,9 @@ function WorkspacesListPage() {
738738
</TopBarWithLoadingBar>
739739
{shouldUseNarrowLayout && <View style={[styles.ph5, styles.pt2]}>{headerButton}</View>}
740740
{shouldShowLoadingIndicator ? (
741-
<View style={[styles.flex1]}>
742-
<FullScreenLoadingIndicator
743-
style={[styles.flex1, styles.pRelative]}
741+
<View style={[styles.flex1, styles.fullScreenLoading]}>
742+
<ActivityIndicator
743+
size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE}
744744
reasonAttributes={
745745
{
746746
context: 'WorkspacesListPage',

0 commit comments

Comments
 (0)