Commit 101f3599 authored by ioedeveloper's avatar ioedeveloper

Added missing panels

parent cf262246
...@@ -38,8 +38,8 @@ export const DropdownPanel = (props: DropdownPanelProps) => { ...@@ -38,8 +38,8 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
}) })
useEffect(() => { useEffect(() => {
update(calldata, header) update(calldata)
}, [calldata, header]) }, [calldata])
useEffect(() => { useEffect(() => {
message(dropdownMessage) message(dropdownMessage)
...@@ -99,7 +99,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => { ...@@ -99,7 +99,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
}) })
} }
const update = function (calldata, header) { const update = function (calldata) {
setState(prevState => { setState(prevState => {
return { return {
...prevState, ...prevState,
...@@ -179,7 +179,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => { ...@@ -179,7 +179,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
} }
const title = <div className="py-0 px-1 title"> const title = <div className="py-0 px-1 title">
<div className={state.toggleDropdown ? 'icon fas fa-caret-down' : 'icon fas fa-caret-right'} onClick={handleToggle}></div> <div className={state.toggleDropdown ? 'icon fas fa-caret-down' : 'icon fas fa-caret-right'} onClick={handleToggle}></div>
<div className="name" onClick={handleToggle}>{dropdownName}</div><span className="nameDetail" onClick={handleToggle}></span> <div className="name" onClick={handleToggle}>{dropdownName}</div><span className="nameDetail" onClick={handleToggle}>{ header }</span>
<CopyToClipboard getContent={copyClipboard} /> <CopyToClipboard getContent={copyClipboard} />
</div> </div>
......
...@@ -2,7 +2,6 @@ import React from 'react' ...@@ -2,7 +2,6 @@ import React from 'react'
import DropdownPanel from './dropdown-panel' import DropdownPanel from './dropdown-panel'
export const StackPanel = ({ calldata }) => { export const StackPanel = ({ calldata }) => {
console.log('calldata: ', calldata)
return ( return (
<div id="stackpanel"> <div id="stackpanel">
<DropdownPanel dropdownName='Stack' opts={{ json: true }} calldata={calldata} /> <DropdownPanel dropdownName='Stack' opts={{ json: true }} calldata={calldata} />
......
...@@ -64,10 +64,10 @@ export const VmDebugger = ({ vmDebuggerLogic, ready }) => { ...@@ -64,10 +64,10 @@ export const VmDebugger = ({ vmDebuggerLogic, ready }) => {
<div id="vmdebugger" className="px-2"> <div id="vmdebugger" className="px-2">
<div> <div>
<StackPanel calldata={stackPanel || {}} /> <StackPanel calldata={stackPanel || {}} />
{/* <MemoryPanel calldata={memoryPanel} /> */} <MemoryPanel calldata={memoryPanel || {}} />
{/* <StoragePanel storage={storagePanel.calldata} header={storagePanel.header} /> */} <StoragePanel storage={storagePanel.calldata || {}} header={storagePanel.header} />
{/* <CallstackPanel calldata={callStackPanel} /> */} <CallstackPanel calldata={callStackPanel || {}} />
{/* <CalldataPanel calldata={calldataPanel} /> */} <CalldataPanel calldata={calldataPanel || {}} />
</div> </div>
</div> </div>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment