@@ -41,6 +41,7 @@ import Navigation from '@libs/Navigation/Navigation';
4141import { formatPaymentMethods , getPaymentMethodDescription } from '@libs/PaymentUtils' ;
4242import { getActiveAdminWorkspaces , getDescriptionForPolicyDomainCard , hasActiveAdminWorkspaces , hasEligibleActiveAdminFromWorkspaces , isPaidGroupPolicy } from '@libs/PolicyUtils' ;
4343import { buildCannedSearchQuery } from '@libs/SearchQueryUtils' ;
44+ import type { SkeletonSpanReasonAttributes } from '@libs/telemetry/useSkeletonSpan' ;
4445import PaymentMethodList from '@pages/settings/Wallet/PaymentMethodList' ;
4546import { deletePaymentBankAccount , openPersonalBankAccountSetupView , setPersonalBankAccountContinueKYCOnSuccess } from '@userActions/BankAccounts' ;
4647import { deletePersonalCard } from '@userActions/Card' ;
@@ -115,6 +116,7 @@ function WalletPage() {
115116 const hasFailedOnfido = userWallet ?. hasFailedOnfido ?? false ;
116117 const hasEligibleActiveAdmin = hasEligibleActiveAdminFromWorkspaces ( allPolicies , currentUserLogin , paymentMethod ?. selectedPaymentMethod ?. bankAccountID ?. toString ( ) ) ;
117118 const paidGroupPolicy = Object . values ( allPolicies ?? { } ) . find ( isPaidGroupPolicy ) ;
119+ const walletLoadingReasonAttributes : SkeletonSpanReasonAttributes = { context : 'WalletPage' , shouldShowLoadingSpinner} ;
118120
119121 const updateShouldShowLoadingSpinner = useCallback ( ( ) => {
120122 // In order to prevent a loop, only update state of the spinner if there is a change
@@ -723,6 +725,7 @@ function WalletPage() {
723725 < ActivityIndicator
724726 size = { CONST . ACTIVITY_INDICATOR_SIZE . LARGE }
725727 style = { [ styles . mb5 ] }
728+ reasonAttributes = { walletLoadingReasonAttributes }
726729 />
727730 ) }
728731 { ! shouldShowLoadingSpinner && hasActivatedWallet && (
0 commit comments