From 02cc51673c73b10ef1c9355259a2336d63df9be9 Mon Sep 17 00:00:00 2001 From: lianahus Date: Fri, 17 Mar 2023 15:57:32 +0100 Subject: [PATCH] dd a tittle to terminal toggle --- apps/remix-ide-e2e/src/tests/recorder.test.ts | 10 +- .../src/lib/components/contractGUI.tsx | 130 +++++++++--------- .../terminal/src/lib/remix-ui-terminal.tsx | 11 +- 3 files changed, 77 insertions(+), 74 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/recorder.test.ts b/apps/remix-ide-e2e/src/tests/recorder.test.ts index e8dd925de2..17363edbfc 100644 --- a/apps/remix-ide-e2e/src/tests/recorder.test.ts +++ b/apps/remix-ide-e2e/src/tests/recorder.test.ts @@ -95,12 +95,10 @@ module.exports = { .clickInstance(1) .pause(1000) .clickFunction('set2 - transact (not payable)', { types: 'uint256 _po', values: '10' }) - .testFunction('last', - { - status: 'true Transaction mined and execution succeed', - 'decoded input': { 'uint256 _po': '10' } - }) - + .testFunction('last', { + status: 'true Transaction mined and execution succeed', + 'decoded input': { 'uint256 _po': '10' } + }) }, 'Run with live "mode" #group2': function (browser: NightwatchBrowser) { diff --git a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx index b74cfd3530..2fe8c893eb 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx @@ -274,7 +274,13 @@ export function ContractGUI (props: ContractGUIProps) {
+ > + - + 0) || props.funcABI.type === "fallback" || props.funcABI.type === "receive" - ? `'(${props.funcABI.type}')` - : "multiParamManagerBasicInputField" - } - placeholder={props.inputs} - onChange={handleBasicInput} - ref={basicInputRef} - style={{ - visibility: !( - (props.funcABI.inputs && props.funcABI.inputs.length > 0) || - props.funcABI.type === "fallback" || - props.funcABI.type === "receive" - ) - ? "hidden" - : "visible", - }} - /> - 0 - ) - ? "hidden" - : "visible", - }} - > + ) + ? "hidden" + : "visible", + }} + /> + 0 + ) + ? "hidden" + : "visible", + }} + >
- { - initializeFields.current[index] = el; - }} - style={{ height: 32 }} - className="form-control udapp_input" - placeholder={inp.type} - /> + { + initializeFields.current[index] = el; + }} + style={{ height: 32 }} + className="form-control udapp_input" + placeholder={inp.type} + />
); })} @@ -526,26 +526,26 @@ export function ContractGUI (props: ContractGUIProps) { tooltipText={'Deployed ' + shortenDate(deployment.date)} key={index} > - { - switchProxyAddress(deployment.address) - }} - data-id={`proxyAddress${index}`} - > - { proxyAddress === deployment.address ? ✓ { deployment.contractName + ' ' + shortenProxyAddress(deployment.address) } : { deployment.contractName + ' ' + shortenProxyAddress(deployment.address) } } - - - )) - } - - } - + { + switchProxyAddress(deployment.address) + }} + data-id={`proxyAddress${index}`} + > + { proxyAddress === deployment.address ? ✓ { deployment.contractName + ' ' + shortenProxyAddress(deployment.address) } : { deployment.contractName + ' ' + shortenProxyAddress(deployment.address) } } + + + )) + } + + } +
-
- { proxyAddressError && { proxyAddressError } } -
+
+ { proxyAddressError && { proxyAddressError } } +
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 8a5a3c1f1f..47a2627d8a 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -440,8 +440,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { setIsOpen(!panels.terminal.minimized) }) - - return () => { props.plugin.off('layout', 'change') } @@ -453,7 +451,14 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
- + + +