Update index.ts

pull/4566/head
bunsenstraat 12 months ago committed by GitHub
parent af2e8517b7
commit a361b090c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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