diff --git a/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts b/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts
index 190c411500..e17b08968f 100644
--- a/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts
+++ b/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts
@@ -150,7 +150,7 @@ export const initListeningOnNetwork = (props, dispatch) => {
// // // append(el)
// }, { activate: true }, dispatch)
} else {
- registerCommandAction('knownTransaction', function (args, cmds, append) {
+ registerCommandAction('knownTransaction', function (args) {
var data = args[0]
console.log({ data })
// let el
@@ -165,7 +165,7 @@ export const initListeningOnNetwork = (props, dispatch) => {
}, { activate: true }, dispatch)
}
})
- props.txListener.event.register('newCall', (tx) => {
+ props.txListener.event.register('newCall', () => {
console.log('new call action')
// log(this, tx, null)
})
diff --git a/libs/remix-ui/terminal/src/lib/reducers/remixWelcom.ts b/libs/remix-ui/terminal/src/lib/reducers/remixWelcom.ts
index 2b3e392aab..b5303fdb62 100644
--- a/libs/remix-ui/terminal/src/lib/reducers/remixWelcom.ts
+++ b/libs/remix-ui/terminal/src/lib/reducers/remixWelcom.ts
@@ -22,4 +22,4 @@ export const remixWelcome = () => {
remix (run remix.help() for more info)
`
-}
\ No newline at end of file
+}
diff --git a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.css b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.css
index 93322ab68d..bab8759a36 100644
--- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.css
+++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.css
@@ -378,10 +378,10 @@ element.style {
}
/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
-.accordion:hover,
+/* .accordion:hover,
.active {
background-color: #ccc;
-}
+} */
/* Style the accordion content title */
.accordion__title {
diff --git a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
index 35eb0f5e65..eb5d45ef23 100644
--- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
+++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
@@ -355,11 +355,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
if (autoCompletState.showSuggestions && (event.which === 13 || event.which === 9)) {
if (autoCompletState.userInput.length === 1) {
setAutoCompleteState(prevState => ({ ...prevState, activeSuggestion: 0, showSuggestions: false, userInput: Object.keys(autoCompletState.data._options[0]).toString() }))
- }
- // else if (autoCompletState.activeSuggestion === 0) {
- // setAutoCompleteState(prevState => ({ ...prevState, activeSuggestion: 0, showSuggestions: false, userInput: autoCompletState.userInput }))
- // }
- else {
+ } else {
console.log(autoCompletState.activeSuggestion, 'autoCompletState.userInput.length')
setAutoCompleteState(prevState => ({ ...prevState, activeSuggestion: 0, showSuggestions: false, userInput: Object.keys(autoCompletState.data._options[autoCompletState.activeSuggestion]).toString() }))
}
@@ -433,7 +429,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const onMouseMove: any = (e: MouseEvent) => {
e.preventDefault()
if (dragging && leftHeight && separatorYPosition) {
- const newEditorHeight = leftHeight - e.clientY + separatorYPosition
+ // const newEditorHeight = leftHeight - e.clientY + separatorYPosition
const newLeftHeight = leftHeight + separatorYPosition - e.clientY
setSeparatorYPosition(e.clientY)
setLeftHeight(newLeftHeight)
@@ -460,7 +456,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
React.useEffect(() => {
const leftRef = document.getElementById('terminal-view')
- const editorRef = document.getElementById('mainPanelPluginsContainer-id')
+ // const editorRef = document.getElementById('mainPanelPluginsContainer-id')
if (leftRef) {
if (!leftHeight) {
setLeftHeight(leftRef.offsetHeight)
@@ -637,7 +633,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
}
}
- const txDetails = (event, tx, obj) => {
+ const txDetails = (event, tx) => {
if (showTableHash.includes(tx.hash)) {
const index = showTableHash.indexOf(tx.hash)
console.log({ index })
@@ -823,13 +819,12 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const renderUnKnownTransactions = (tx, receipt, index) => {
const from = tx.from
const to = tx.to
- const obj = { from, to }
+ // const obj = { from, to }
const txType = 'unknown' + (tx.isCall ? 'Call' : 'Tx')
console.log('render unknown transaction ')
return (
- txDetails(event, tx, obj)}>
- {/* onClick={e => txDetails(e, tx, data, obj)} */}
+
txDetails(event, tx)}>
{checkTxStatus(receipt || tx, txType)}
{context({ from, to, tx }, props.blockchain)}
{ console.log('under context and checkTxStatus')}
@@ -861,12 +856,12 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const renderKnownTransactions = (tx, receipt, resolvedData, logs, index) => {
const from = tx.from
const to = resolvedData.contractName + '.' + resolvedData.fn
- const obj = { from, to }
+ // const obj = { from, to }
const txType = 'knownTx'
console.log('render unknown transaction ')
return (
- txDetails(event, tx, obj)}>
+
txDetails(event, tx)}>
{checkTxStatus(receipt, txType)}
{context({ from, to, tx }, props.blockchain)}