removed scam alerts in Desktop IDE (issue #4740)

pull/5155/head
ijlal321 3 months ago committed by Aniket
parent 4f7b466a55
commit d9376e15e4
  1. 7
      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 (
<>
<StatusBarContextProvider>
{showScamDetails && (
{!isElectron() && showScamDetails && (
<FloatingFocusManager context={context} modal={false}>
<ScamDetails refs={refs} floatStyle={{ ...floatingStyles, minHeight: 'auto', alignContent: 'center', paddingRight: '0.5rem' }} getFloatingProps={getFloatingProps} scamAlerts={scamAlerts} />
</FloatingFocusManager>
@ -86,9 +87,9 @@ export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) {
<div className="remixui_statusbar">
<AIStatus plugin={statusBarPlugin} aiActive={lightAiUp} isAiActive={isAiActive} setIsAiActive={setIsAiActive} />
</div>
<div className="remixui_statusbar bg-warning px-2 remixui_statusbar_custom_padding d-flex justify-center align-items-center">
{ !isElectron() && <div className="remixui_statusbar bg-warning px-2 remixui_statusbar_custom_padding d-flex justify-center align-items-center">
<ScamAlertStatus refs={refs} getReferenceProps={getReferenceProps} />
</div>
</div> }
</div>
</div>
</StatusBarContextProvider>

Loading…
Cancel
Save