diff --git a/packages/kit/src/views/AssetDetails/pages/TokenDetails/TokenDetailsView.tsx b/packages/kit/src/views/AssetDetails/pages/TokenDetails/TokenDetailsView.tsx index 156954045d4..0ae2f98873d 100644 --- a/packages/kit/src/views/AssetDetails/pages/TokenDetails/TokenDetailsView.tsx +++ b/packages/kit/src/views/AssetDetails/pages/TokenDetails/TokenDetailsView.tsx @@ -61,43 +61,22 @@ function TokenDetailsViews(props: IProps) { ); } - if (platformEnv.isNative) { - return ( - <> - - } /> - - ); - } - return ( - <> - - - + } + /> ); } diff --git a/packages/kit/src/views/AssetDetails/pages/TokenDetails/index.tsx b/packages/kit/src/views/AssetDetails/pages/TokenDetails/index.tsx index 624000b85b7..19f7bd23a37 100644 --- a/packages/kit/src/views/AssetDetails/pages/TokenDetails/index.tsx +++ b/packages/kit/src/views/AssetDetails/pages/TokenDetails/index.tsx @@ -30,6 +30,7 @@ import type { IAccountDeriveTypes, } from '@onekeyhq/kit-bg/src/vaults/types'; import { ETranslations } from '@onekeyhq/shared/src/locale'; +import platformEnv from '@onekeyhq/shared/src/platformEnv'; import type { EModalAssetDetailRoutes, IModalAssetDetailsParamList, @@ -197,26 +198,27 @@ function TokenDetails() { ]); const renderTokenDetailsView = useCallback(() => { + if (isLoading) + return ( + + + + ); if ( vaultSettings?.mergeDeriveAssetsEnabled && isAllNetworks && !accountUtils.isOthersWallet({ walletId }) ) { - if (isLoading) - return ( - - - - ); if (tabs && !isEmpty(tabs)) { return ( @@ -253,7 +255,7 @@ function TokenDetails() { ]); return ( - +