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. 15
      libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx
  4. 10
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

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

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

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

@ -978,9 +978,9 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
placement="right" placement="right"
tooltipId="overlay-tooltip-compile-run" tooltipId="overlay-tooltip-compile-run"
tooltipText={<div className="text-left"> tooltipText={<div className="text-left">
{!(configFilePath === '' && state.useFileConfiguration) && <div><b>Ctrl+Shift+S</b> for compiling and script execution</div>} {!(configFilePath === '' && state.useFileConfiguration) && <div><b>Ctrl+Shift+S</b> for compiling and script execution</div>}
{(configFilePath === '' && state.useFileConfiguration) && <div> No config file selected</div>} {(configFilePath === '' && state.useFileConfiguration) && <div> No config file selected</div>}
</div>} </div>}
> >
<span> <span>
<FormattedMessage id='solidity.compileAndRunScript' /> <FormattedMessage id='solidity.compileAndRunScript' />
@ -988,7 +988,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
</CustomTooltip> </CustomTooltip>
</button> </button>
<CustomTooltip <CustomTooltip
placement="right" placement="top"
tooltipId="overlay-tooltip-compile-run-doc" tooltipId="overlay-tooltip-compile-run-doc"
tooltipText={<div className="text-left p-2"> tooltipText={<div className="text-left p-2">
<div>Choose the script to execute right after compilation <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 Click the "i" icon to learn more
</div>} </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> </CustomTooltip>
<CopyToClipboard tip="Click to copy the custom NatSpec tag" getContent={() => '@custom:dev-run-script file_path'} direction='top'> <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"> <button className="btn remixui_copyButton ml-2 my-1 text-dark">

Loading…
Cancel
Save