Commit d71ac840 authored by ioedeveloper's avatar ioedeveloper

Removed unused comments

parent f1e597d2
......@@ -5,7 +5,6 @@ import './styles/assembly-items.css'
export const AssemblyItems = ({ registerEvent }) => {
const [assemblyItems, dispatch] = useReducer(reducer, initialState)
const [selectedItem, setSelectedItem] = useState(0)
// const [index, setIndex] = useState(assemblyItems.opCodes.index)
const refs = useRef({})
const asmItemsRef = useRef(null)
......@@ -41,15 +40,6 @@ export const AssemblyItems = ({ registerEvent }) => {
setSelectedItem(index)
}
}
// const handleScroll = () => {
// const codeView = asmItemsRef.current
// if (codeView.scrollTop === 0) {
// dispatch({ type: 'FETCH_PREV_OPCODES', payload: {} })
// codeView.scrollTop = 0
// }
// }
return (
<div className="border rounded px-1 mt-1 bg-light">
......
import React, { useState, useEffect, useReducer } from 'react'
import React, { useState, useEffect } from 'react'
import { TreeView, TreeViewItem } from '@remix-ui/tree-view'
import { DropdownPanelProps, ExtractData, ExtractFunc } from '../../types'
import { CopyToClipboard } from '@remix-ui/clipboard'
import { default as deepequal } from 'deep-equal'
import { initialState, reducer } from '../../reducers/calldata'
import './styles/dropdown-panel.css'
export const DropdownPanel = (props: DropdownPanelProps) => {
const [data, dispatch] = useReducer(reducer, initialState)
const { dropdownName, dropdownMessage, calldata, header, loading, extractFunc, formatSelfFunc } = props
const extractDataDefault: ExtractFunc = (item, parent?) => {
const ret: ExtractData = {}
......
......@@ -57,20 +57,6 @@ export const reducer = (state = initialState, action: Action) => {
hasError: action.payload
};
}
// case 'FETCH_PREV_OPCODES': {
// const top = state.top - 10 > 0 ? state.top - 10 : 0
// const display = state.opCodes.code.slice(top, state.bottom)
// return {
// ...state,
// display,
// index: display.findIndex(code => code === state.opCodes.code[state.opCodes.index]),
// top,
// isRequesting: false,
// isSuccessful: true,
// hasError: null
// };
// }
default:
throw new Error();
}
......
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