From d9376e15e4b8ddb40c089b3a73e52d040b1a4aa3 Mon Sep 17 00:00:00 2001 From: ijlal321 Date: Sat, 17 Aug 2024 12:57:09 +0500 Subject: [PATCH] removed scam alerts in Desktop IDE (issue #4740) --- .../remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx b/libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx index 63b5b39017..4eee63fb13 100644 --- a/libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx +++ b/libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx @@ -9,6 +9,7 @@ import axios from 'axios' import { StatusBar } from 'apps/remix-ide/src/app/components/status-bar' import { StatusBarContextProvider } from '../contexts/statusbarcontext' import DidYouKnow from './components/didYouKnow' +import isElectron from 'is-electron' export interface RemixUIStatusBarProps { statusBarPlugin: StatusBar @@ -68,7 +69,7 @@ export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) { return ( <> - {showScamDetails && ( + {!isElectron() && showScamDetails && ( @@ -86,9 +87,9 @@ export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) {
-
+ { !isElectron() &&
-
+
}