From 50d9eb94a9c1cc307173279db8605a7ff1f7f9ba Mon Sep 17 00:00:00 2001 From: limichange Date: Sat, 27 Dec 2025 22:01:03 +0800 Subject: [PATCH] fix: restore OneKey ID and Prime in webdapp more menu --- .../src/components/MoreActionButton/index.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/packages/kit/src/components/MoreActionButton/index.tsx b/packages/kit/src/components/MoreActionButton/index.tsx index a63818eda4d5..5ee2b6568fa0 100644 --- a/packages/kit/src/components/MoreActionButton/index.tsx +++ b/packages/kit/src/components/MoreActionButton/index.tsx @@ -952,14 +952,12 @@ function MoreActionGeneralGrid() { onPress: handleScan, trackID: 'wallet-scan', }, - !platformEnv.isWebDappMode - ? { - title: 'Prime', - icon: 'PrimeOutline' as const, - onPress: handlePrime, - trackID: 'wallet-prime', - } - : undefined, + { + title: 'Prime', + icon: 'PrimeOutline' as const, + onPress: handlePrime, + trackID: 'wallet-prime', + }, ].filter(Boolean); }, [handlePrime, handleScan, handleSettings, intl]); return ( @@ -1299,7 +1297,7 @@ function BaseMoreActionContent() { {platformEnv.isWebDappMode ? null : } - {platformEnv.isWebDappMode ? null : } + {isDesktopMode ? null : } @@ -1335,7 +1333,7 @@ function MoreActionContent({ {platformEnv.isWebDappMode ? null : } - {platformEnv.isWebDappMode ? null : } + {isDesktopMode ? null : }