|
|
@ -9,6 +9,7 @@ import axios from 'axios' |
|
|
|
import { StatusBar } from 'apps/remix-ide/src/app/components/status-bar' |
|
|
|
import { StatusBar } from 'apps/remix-ide/src/app/components/status-bar' |
|
|
|
import { StatusBarContextProvider } from '../contexts/statusbarcontext' |
|
|
|
import { StatusBarContextProvider } from '../contexts/statusbarcontext' |
|
|
|
import DidYouKnow from './components/didYouKnow' |
|
|
|
import DidYouKnow from './components/didYouKnow' |
|
|
|
|
|
|
|
import isElectron from 'is-electron' |
|
|
|
|
|
|
|
|
|
|
|
export interface RemixUIStatusBarProps { |
|
|
|
export interface RemixUIStatusBarProps { |
|
|
|
statusBarPlugin: StatusBar |
|
|
|
statusBarPlugin: StatusBar |
|
|
@ -68,7 +69,7 @@ export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<StatusBarContextProvider> |
|
|
|
<StatusBarContextProvider> |
|
|
|
{showScamDetails && ( |
|
|
|
{!isElectron() && showScamDetails && ( |
|
|
|
<FloatingFocusManager context={context} modal={false}> |
|
|
|
<FloatingFocusManager context={context} modal={false}> |
|
|
|
<ScamDetails refs={refs} floatStyle={{ ...floatingStyles, minHeight: 'auto', alignContent: 'center', paddingRight: '0.5rem' }} getFloatingProps={getFloatingProps} scamAlerts={scamAlerts} /> |
|
|
|
<ScamDetails refs={refs} floatStyle={{ ...floatingStyles, minHeight: 'auto', alignContent: 'center', paddingRight: '0.5rem' }} getFloatingProps={getFloatingProps} scamAlerts={scamAlerts} /> |
|
|
|
</FloatingFocusManager> |
|
|
|
</FloatingFocusManager> |
|
|
@ -86,9 +87,9 @@ export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) { |
|
|
|
<div className="remixui_statusbar"> |
|
|
|
<div className="remixui_statusbar"> |
|
|
|
<AIStatus plugin={statusBarPlugin} aiActive={lightAiUp} isAiActive={isAiActive} setIsAiActive={setIsAiActive} /> |
|
|
|
<AIStatus plugin={statusBarPlugin} aiActive={lightAiUp} isAiActive={isAiActive} setIsAiActive={setIsAiActive} /> |
|
|
|
</div> |
|
|
|
</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} /> |
|
|
|
<ScamAlertStatus refs={refs} getReferenceProps={getReferenceProps} /> |
|
|
|
</div> |
|
|
|
</div> } |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</StatusBarContextProvider> |
|
|
|
</StatusBarContextProvider> |
|
|
|