fixes in udapp.`

pull/3530/head^2
lianahus 2 years ago committed by Aniket
parent 092aeb1d56
commit ce19502fd2
  1. 2
      libs/remix-ui/file-decorators/src/lib/components/file-decoration-icon.tsx
  2. 2
      libs/remix-ui/run-tab/src/lib/components/deployButton.tsx
  3. 13
      libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx
  4. 4
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -15,8 +15,6 @@ export type fileDecorationProps = {
export const FileDecorationIcons = (props: fileDecorationProps) => {
const [states, setStates] = useState<fileDecoration[]>([])
useEffect(() => {
//console.log(props.file)
//console.log(props.fileState)
setStates(props.fileDecorations.filter((fileDecoration) => fileDecoration.path === props.file.path || `${fileDecoration.workspace.name}/${fileDecoration.path}` === props.file.path))
}, [props.fileDecorations])

@ -27,7 +27,7 @@ export function DeployButton (props: DeployButtonProps) {
</Dropdown.Menu>
</Dropdown> :
<CustomTooltip
placement="right"
placement="top"
tooltipId="deployButtonTooltip"
tooltipClasses="text-nowrap"
tooltipText={props.buttonOptions.title}

@ -237,10 +237,8 @@ export function UniversalDappUI (props: UdappProps) {
{props.context})
</span>
</div>
<div className="btn-group">
<button className="btn p-1 btn-secondary">
<div className="btn">
<CopyToClipboard content={address} direction={"top"} />
</button>
</div>
</div>
<CustomTooltip
@ -249,13 +247,12 @@ export function UniversalDappUI (props: UdappProps) {
tooltipId="udapp_udappCloseTooltip"
tooltipText="Remove from the list"
>
<button
className="udapp_udappClose mr-1 p-1 btn btn-secondary align-items-center"
<i
className="udapp_closeIcon m-1 fas fa-times align-self-center"
aria-hidden="true"
data-id="universalDappUiUdappClose"
onClick={remove}
>
<i className="udapp_closeIcon fas fa-times" aria-hidden="true"></i>
</button>
></i>
</CustomTooltip>
</div>
<div

@ -988,7 +988,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
</CustomTooltip>
</button>
<CustomTooltip
placement="right"
placement="top"
tooltipId="overlay-tooltip-compile-run-doc"
tooltipText={<div className="text-left p-2">
<div>Choose the script to execute right after compilation
@ -1006,7 +1006,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
Click the "i" icon to learn more
</div>}
>
<a href="https://remix-ide.readthedocs.io/en/latest/running_js_scripts.html#compile-a-contract-and-run-a-script-on-the-fly" target="_blank" ><i className="pl-2 ml-2 mt-3 mb-1 fas fa-info text-dark"></i></a>
<a href="https://remix-ide.readthedocs.io/en/latest/running_js_scripts.html#compile-a-contract-and-run-a-script-on-the-fly" target="_blank" ><i className="pl-2 ml-2 fas fa-info text-dark"></i></a>
</CustomTooltip>
<CopyToClipboard tip="Click to copy the custom NatSpec tag" getContent={() => '@custom:dev-run-script file_path'} direction='top'>
<button className="btn remixui_copyButton ml-2 my-1 text-dark">

Loading…
Cancel
Save