Update index.ts

pull/5370/head
bunsenstraat 1 year ago committed by GitHub
parent 6af9c5b952
commit c8bee68a3b
  1. 17
      libs/remix-ui/xterm/src/lib/actions/index.ts

@ -9,19 +9,4 @@ export const createTerminal = async (shell: string = '', plugin: Plugin, working
dispatch({ type: 'HIDE_ALL_TERMINALS', payload: null })
dispatch({ type: 'ADD_TERMINAL', payload: { pid, queue: '', timeStamp: Date.now(), ref: null, hidden: false } })
/*
setTerminals(prevState => {
// set all to hidden
prevState.forEach(xtermState => {
xtermState.hidden = true
})
return [...prevState, {
pid: pid,
queue: '',
timeStamp: Date.now(),
ref: null,
hidden: false
}]
})
*/
}
}

Loading…
Cancel
Save