change FE menu icon. fix git clone.

pull/4930/head
Joseph Izang 5 months ago committed by Aniket
parent 61dc91dbd5
commit 1825cf6d90
  1. 4
      libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx
  2. 2
      libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx

@ -303,7 +303,9 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
</CustomTooltip>
<CustomTooltip placement={'top'} tooltipId="overlay-tooltip" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="home.gitCloneTooltip" />} tooltipTextClasses="border bg-light text-dark p-1 pr-3"
>
<button className="btn text-nowrap p-2 mr-2 border my-1" data-id="landingPageImportFromGitHubButton" onClick={() => showFullMessage('GitHub', 'github URL', ['https://github.com/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-metadata.sol', 'https://github.com/OpenZeppelin/openzeppelin-solidity/blob/67bca857eedf99bf44a4b6a0fc5b5ed553135316/contracts/access/Roles.sol'])}>
<button className="btn text-nowrap p-2 mr-2 border my-1" data-id="landingPageImportFromGitHubButton" onClick={async () => {
await plugin.call('filePanel', 'clone')
}}>
Git Clone
</button>
</CustomTooltip>

@ -50,7 +50,7 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
{
action: 'importFromHttps',
title: 'Import files with https',
icon: 'far fa-cloud-arrow-down',
icon: 'far fa-globe',
placement: 'top',
platforms: [appPlatformTypes.web, appPlatformTypes.desktop]
}

Loading…
Cancel
Save