From 3230c53bc7491837b6765658c136fc6984afe0ec Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Fri, 9 Feb 2024 19:09:21 +0530 Subject: [PATCH] add save icon --- apps/remix-ide/src/app/tabs/locales/en/udapp.json | 1 + .../run-tab/src/lib/components/universalDappUI.tsx | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/locales/en/udapp.json b/apps/remix-ide/src/app/tabs/locales/en/udapp.json index ccf96f0e66..ab62026bfd 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/udapp.json +++ b/apps/remix-ide/src/app/tabs/locales/en/udapp.json @@ -99,6 +99,7 @@ "udapp._comment_universalDappUI.tsx": "libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx", "udapp.tooltipText7": "Remove from the list", + "udapp.tooltipText14": "Save contract", "udapp.tooltipText8": "Click for docs about using 'receive'/'fallback'", "udapp.tooltipText9": "The Calldata to send to fallback function of the contract.", "udapp.tooltipText10": "Send data to contract.", diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index ca644cb1c4..b89a8adb5b 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -115,6 +115,10 @@ export function UniversalDappUI(props: UdappProps) { props.removeInstance(props.index) } + const saveContract = () => { + console.log('save is clicked') + } + const runTransaction = (lookupOnly, funcABI: FuncABI, valArr, inputsValues, funcIndex?: number) => { const functionName = funcABI.type === 'function' ? funcABI.name : `(${funcABI.type})` const logMsg = `${lookupOnly ? 'call' : 'transact'} to ${props.instance.name}.${functionName}` @@ -227,10 +231,16 @@ export function UniversalDappUI(props: UdappProps) { {props.instance.name} at {shortenAddress(address)} ({props.context}) -
+
+
+ }> + + +
+ }>