File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed
common/src/api/tan-query/wallets
web/src/pages/pay-and-earn-page/components Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export const useUSDCBalance = ({
8181
8282 // Map TanStack Query states to the Status enum for API compatibility
8383 let status = Status . IDLE
84- if ( result . isLoading ) {
84+ if ( result . isPending ) {
8585 status = Status . LOADING
8686 } else if ( result . isError ) {
8787 status = Status . ERROR
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121 Text ,
2222 IconButton ,
2323 useMedia ,
24- motion
24+ Skeleton
2525} from '@audius/harmony'
2626
2727import { useModalState } from 'common/hooks/useModalState'
@@ -112,17 +112,13 @@ export const CashWallet = () => {
112112 </ Flex >
113113
114114 { /* Balance Value */ }
115- < Text
116- variant = 'display'
117- size = 'm'
118- color = 'default'
119- css = { {
120- opacity : isLoading ? 0 : 1 ,
121- transition : `opacity ${ motion . calm } `
122- } }
123- >
124- { balanceFormatted }
125- </ Text >
115+ { isLoading ? (
116+ < Skeleton w = 'unit24' h = 'unit10' />
117+ ) : (
118+ < Text variant = 'display' size = 'm' color = 'default' >
119+ { balanceFormatted }
120+ </ Text >
121+ ) }
126122
127123 { /* Payout Wallet Info */ }
128124 < Flex
You can’t perform that action at this time.
0 commit comments