From 870b44cb6c4122cbd300236e310b03c376d4104c Mon Sep 17 00:00:00 2001 From: David Disu Date: Thu, 24 Mar 2022 12:27:58 +0100 Subject: [PATCH] create dropdown ui for deploy to proxy. --- .eslintrc.json | 3 ++- .../run-tab/src/lib/components/contractGUI.tsx | 10 +++++++++- libs/remix-ui/run-tab/src/lib/css/run-tab.css | 13 +++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 226848ea37..e2a852292a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -29,7 +29,8 @@ "@typescript-eslint/no-this-alias": "off", "@typescript-eslint/no-empty-function": "off", "eslint-disable-next-line no-empty": "off", - "no-empty": "off" + "no-empty": "off", + "jsx-a11y/anchor-is-valid": "off" } }, { 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 74dade661e..6b7f675152 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx @@ -3,6 +3,7 @@ import React, { useEffect, useRef, useState } from 'react' import * as remixLib from '@remix-project/remix-lib' import { ContractGUIProps } from '../types' import { CopyToClipboard } from '@remix-ui/clipboard' +import { ButtonGroup, Dropdown } from 'react-bootstrap' const txFormat = remixLib.execution.txFormat export function ContractGUI (props: ContractGUIProps) { @@ -164,7 +165,14 @@ export function ContractGUI (props: ContractGUIProps) { return (
0) || (props.funcABI.type === 'fallback') || (props.funcABI.type === 'receive') ? 'udapp_hasArgs' : ''}`}>
- + + + + + ✓ Deploy + Deploy with Proxy + +