|
|
|
@ -9,6 +9,7 @@ import { Toaster } from '@remix-ui/toaster' // eslint-disable-line |
|
|
|
|
import { isValidHash } from '@remix-ui/helper' |
|
|
|
|
/* eslint-disable-next-line */ |
|
|
|
|
import './debugger-ui.css' |
|
|
|
|
import { OverlayTrigger, Tooltip } from 'react-bootstrap' |
|
|
|
|
const _paq = (window as any)._paq = (window as any)._paq || [] |
|
|
|
|
|
|
|
|
|
export const DebuggerUI = (props: DebuggerUIProps) => { |
|
|
|
@ -351,12 +352,21 @@ export const DebuggerUI = (props: DebuggerUIProps) => { |
|
|
|
|
<div className="px-2" ref={debuggerTopRef}> |
|
|
|
|
<div> |
|
|
|
|
<div className="mt-2 mb-2 debuggerConfig custom-control custom-checkbox"> |
|
|
|
|
<OverlayTrigger overlay={ |
|
|
|
|
<Tooltip id="debuggerGenSourceCheckbox"> |
|
|
|
|
<span>{"Debug with generated sources"}</span> |
|
|
|
|
</Tooltip> |
|
|
|
|
} placement="top-start" |
|
|
|
|
> |
|
|
|
|
<span className="p-0 m-0"> |
|
|
|
|
<input className="custom-control-input" id="debugGeneratedSourcesInput" onChange={({ target: { checked } }) => { |
|
|
|
|
setState(prevState => { |
|
|
|
|
return { ...prevState, opt: { ...prevState.opt, debugWithGeneratedSources: checked } } |
|
|
|
|
}) |
|
|
|
|
}} type="checkbox" title="Debug with generated sources" /> |
|
|
|
|
}} type="checkbox" /> |
|
|
|
|
<label data-id="debugGeneratedSourcesLabel" className="form-check-label custom-control-label" htmlFor="debugGeneratedSourcesInput">Use generated sources (Solidity {'>='} v0.7.2)</label> |
|
|
|
|
</span> |
|
|
|
|
</OverlayTrigger> |
|
|
|
|
</div> |
|
|
|
|
{ state.isLocalNodeUsed && <div className="mb-2 debuggerConfig custom-control custom-checkbox"> |
|
|
|
|
<input className="custom-control-input" id="debugWithLocalNodeInput" onChange={({ target: { checked } }) => { |
|
|
|
|