hide terminal when quick-dapp is activated

pull/5060/head
drafish 5 months ago committed by yann300
parent 75955f483d
commit e890270963
  1. 3
      apps/quick-dapp/src/actions/index.ts
  2. 3
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -36,6 +36,9 @@ export const connectRemix = async () => {
await remixClient.onload();
// @ts-expect-error
await remixClient.call('layout', 'minimize', 'terminal', true);
await dispatch({
type: 'SET_LOADING',
payload: {

@ -27,7 +27,7 @@ import RenderUnKnownTransactions from './components/RenderUnknownTransactions' /
import RenderCall from './components/RenderCall' // eslint-disable-line
import RenderKnownTransactions from './components/RenderKnownTransactions' // eslint-disable-line
import parse from 'html-react-parser'
import { EMPTY_BLOCK, KNOWN_TRANSACTION, RemixUiTerminalProps, SET_ISVM, UNKNOWN_TRANSACTION } from './types/terminalTypes'
import { EMPTY_BLOCK, KNOWN_TRANSACTION, RemixUiTerminalProps, SET_ISVM, SET_OPEN, UNKNOWN_TRANSACTION } from './types/terminalTypes'
import { wrapScript } from './utils/wrapScript'
import { TerminalContext } from './context'
const _paq = (window._paq = window._paq || [])
@ -570,6 +570,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
props.plugin.on('layout', 'change', (panels) => {
setIsOpen(!panels.terminal.minimized)
dispatch({ type: SET_OPEN, payload: !panels.terminal.minimized })
})
return () => {

Loading…
Cancel
Save