From 136c169d6c5d67d3cbd4a082950dd8afdb3d40e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?qwang1113=20=28=E7=8E=8B=E5=BC=BA=29?= <15064266+qwang1113@users.noreply.github.com> Date: Tue, 6 Dec 2022 10:09:47 +0800 Subject: [PATCH] feat: open goplus website (#2148) --- .../kit/src/views/ManageTokens/RiskDetail.tsx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/kit/src/views/ManageTokens/RiskDetail.tsx b/packages/kit/src/views/ManageTokens/RiskDetail.tsx index 7f6bad19ba8..1fe1e4a0435 100644 --- a/packages/kit/src/views/ManageTokens/RiskDetail.tsx +++ b/packages/kit/src/views/ManageTokens/RiskDetail.tsx @@ -12,6 +12,7 @@ import { Image, List, Modal, + Pressable, Spinner, Typography, VStack, @@ -22,6 +23,8 @@ import { GoPlusTokenSecurity } from '@onekeyhq/engine/src/types/goplus'; import goPlus from '@onekeyhq/kit/assets/goPlus.png'; import NoRisks from '@onekeyhq/kit/assets/NoRisks.png'; +import { openUrl } from '../../utils/openUrl'; + import { useTokenSecurityInfo } from './hooks'; import { ManageTokenRoutes, ManageTokenRoutesParams } from './types'; @@ -48,6 +51,10 @@ const RiskDetail: FC = () => { return !danger?.length || !warn?.length; }, [danger, warn, hasSecurity]); + const linkToGoPlus = useCallback(() => { + openUrl('https://gopluslabs.io/'); + }, []); + const header = useMemo(() => { if (hasSecurity) { if (danger?.length) { @@ -95,11 +102,13 @@ const RiskDetail: FC = () => { () => ( - - Powered By - - Go Plus - + + + Powered By + + Go Plus + + ), [insets],