Skip to content

Commit d2a2136

Browse files
MelvinBot{"message":"Not Found","documentation_url":"https://docs.github.com/rest/issues/comments#get-an-issue-comment","status":"404"}
andcommitted
Use shared LoadingIndicator component for scoped loader
Co-authored-by: {"message":"Not Found","documentation_url":"https://docs.github.com/rest/issues/comments#get-an-issue-comment","status":"404"} <{"message":"Not Found","documentation_url":"https://docs.github.com/rest/issues/comments#get-an-issue-comment","status":"404"}@users.noreply.github.com>
1 parent c385d2f commit d2a2136

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

  • src/pages/settings/Subscription/CardAuthenticationModal

‎src/pages/settings/Subscription/CardAuthenticationModal/index.tsx‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import ActivityIndicator from '@components/ActivityIndicator';
21
import HeaderWithBackButton from '@components/HeaderWithBackButton';
2+
import LoadingIndicator from '@components/LoadingIndicator';
33
import Modal from '@components/Modal';
44
import ScreenWrapper from '@components/ScreenWrapper';
55

@@ -18,7 +18,7 @@ import CONST from '@src/CONST';
1818
import ONYXKEYS from '@src/ONYXKEYS';
1919

2020
import React, {useCallback, useEffect, useState} from 'react';
21-
import {StyleSheet, View} from 'react-native';
21+
import {View} from 'react-native';
2222

2323
type CardAuthenticationModalProps = {
2424
/** Title shown in the header of the modal */
@@ -110,14 +110,7 @@ function CardAuthenticationModal({headerTitle, policyID}: CardAuthenticationModa
110110
setIsLoading(false);
111111
}}
112112
/>
113-
{isLoading && (
114-
<View style={[StyleSheet.absoluteFill, styles.fullScreenLoading]}>
115-
<ActivityIndicator
116-
size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE}
117-
reasonAttributes={reasonAttributes}
118-
/>
119-
</View>
120-
)}
113+
{isLoading && <LoadingIndicator reasonAttributes={reasonAttributes} />}
121114
</View>
122115
</ScreenWrapper>
123116
</Modal>

0 commit comments

Comments
 (0)