From 56cd01fabdcf3e5218fcf79083ace9813695480a Mon Sep 17 00:00:00 2001 From: Wukong Sun Date: Mon, 17 Mar 2025 11:41:27 +0800 Subject: [PATCH 1/2] chore: mf-6664 hide swap buttons --- packages/mask/.webpack/config.ts | 2 + .../Wallet/components/ActionGroup/index.tsx | 2 +- .../plugins/Trader/src/SiteAdaptor/index.tsx | 82 ++++++++++--------- .../trader/hooks/useSupportedChains.ts | 1 + .../src/SiteAdaptor/trending/TrendingView.tsx | 5 +- 5 files changed, 51 insertions(+), 41 deletions(-) diff --git a/packages/mask/.webpack/config.ts b/packages/mask/.webpack/config.ts index 921a86a640cb..b408fcc2c42e 100644 --- a/packages/mask/.webpack/config.ts +++ b/packages/mask/.webpack/config.ts @@ -236,6 +236,8 @@ export async function createConfiguration( MASK_SENTRY: process.env.MASK_SENTRY || JSON.stringify('disabled'), MASK_MIXPANEL: process.env.MASK_MIXPANEL || JSON.stringify('disabled'), NEXT_PUBLIC_FIREFLY_API_URL: process.env.NEXT_PUBLIC_FIREFLY_API_URL || '', + SOLANA_RPC_ENDPOINT: process.env.SOLANA_RPC_ENDPOINT || '', + MASK_ENABLE_EXCHANGE: process.env.MASK_ENABLE_EXCHANGE || '', }), new (rspack?.DefinePlugin || webpack.default.DefinePlugin)({ 'process.browser': 'true', diff --git a/packages/mask/popups/pages/Wallet/components/ActionGroup/index.tsx b/packages/mask/popups/pages/Wallet/components/ActionGroup/index.tsx index b8ab50f305e4..be8c15807934 100644 --- a/packages/mask/popups/pages/Wallet/components/ActionGroup/index.tsx +++ b/packages/mask/popups/pages/Wallet/components/ActionGroup/index.tsx @@ -102,7 +102,7 @@ export const ActionGroup = memo(function ActionGroup({ className, chainId, addre Receive - {supported || isLoading ? + {supported ?