From fb0ccbb54b0c499728424071d3b50e03490be024 Mon Sep 17 00:00:00 2001 From: R Date: Fri, 16 Jun 2023 18:30:09 +0400 Subject: [PATCH] fix: hide option for extensionless providers --- examples/react/package.json | 2 +- examples/react/src/App.tsx | 4 ++-- src/components/CardManager.tsx | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/react/package.json b/examples/react/package.json index a91ca15..6840c9c 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -18,7 +18,7 @@ "react-scripts": "5.0.1", "styled-components": "^5.3.5", "typescript": "^4.4.2", - "venom-connect": "1.0.21" + "venom-connect": "1.0.22" }, "scripts": { "start": "react-scripts start", diff --git a/examples/react/src/App.tsx b/examples/react/src/App.tsx index 6196255..54edb52 100644 --- a/examples/react/src/App.tsx +++ b/examples/react/src/App.tsx @@ -126,8 +126,8 @@ const initVenomConnect = async () => { }, // Setup - id: "mobile", - type: "mobile", + id: "extension", + type: "extension", }, ], defaultWalletWaysToConnect: [ diff --git a/src/components/CardManager.tsx b/src/components/CardManager.tsx index 0b25885..4aec787 100644 --- a/src/components/CardManager.tsx +++ b/src/components/CardManager.tsx @@ -40,6 +40,7 @@ export const CardManager = (props: CardManagerProps) => { // вывод списка под разные платформы if (connectorType) { + if (options?.["hide"]) return null; // hide card if option if (isMobile) { if (isIOS) { return connectorType === "ios" ? (