Skip to content

Commit cbcb2f0

Browse files
joeizangAniket-Engg
authored andcommitted
add tooltip for vyper repo clone button. update docs url
1 parent e4b935b commit cbcb2f0

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

apps/vyper/src/app/app.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import ToggleButton from 'react-bootstrap/ToggleButton'
1313
import Button from 'react-bootstrap/Button'
1414

1515
import './app.css'
16+
import { CustomTooltip } from '@remix-ui/helper'
1617

1718
interface AppState {
1819
status: 'idle' | 'inProgress'
@@ -71,20 +72,16 @@ const App: React.FC = () => {
7172

7273
return (
7374
<main id="vyper-plugin">
74-
<header>
75-
<div className="title">
76-
<img src={'assets/logo.svg'} alt="Vyper logo" />
77-
<h4>yper Compiler</h4>
78-
</div>
79-
<a rel="noopener noreferrer" href="https://github.com/ethereum/remix-project/tree/master/apps/vyper" target="_blank">
80-
<i className="fab fa-github"></i>
81-
</a>
82-
</header>
8375
<section>
8476
<div className="px-3 w-100">
85-
<Button data-id="add-repository" className="w-100 text-dark bg-light btn-outline-primary " onClick={() => remixClient.cloneVyperRepo()}>
77+
<CustomTooltip
78+
placement="top"
79+
tooltipText="Clone vyper examples. Switch to the Vyper workspace to see the examples."
80+
>
81+
<Button data-id="add-repository" className="w-100 text-dark bg-light btn-outline-primary " onClick={() => remixClient.cloneVyperRepo()}>
8682
Clone Vyper examples repository
87-
</Button>
83+
</Button>
84+
</CustomTooltip>
8885
</div>
8986
<ToggleButtonGroup name="remote" onChange={setEnvironment} type="radio" value={state.environment}>
9087
<ToggleButton data-id="remote-compiler" variant="secondary" name="remote" value="remote">

apps/vyper/src/profile.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "vyper",
3-
"displayName": "Vyper",
3+
"displayName": "Vyper Plugin",
44
"methods": ["getCompilationResult", "compile"],
55
"url": "https://ipfs-cluster.ethdevops.io/ipfs/QmbmPzUg7ghTKcF2eo64zm1k1LKdibYfqYmiqXkHKXks8r",
6-
"documentation": "https://github.com/GrandSchtroumpf/vyper-remix",
6+
"documentation": "https://remix-ide.readthedocs.io/en/latest/plugin_list.html",
77
"description": "Compile vyper contracts",
88
"kind": "compiler",
99
"icon": "data:image/svg+xml;base64,PHN2ZyBpZD0iRmxhdF9Mb2dvIiBkYXRhLW5hbWU9IkZsYXQgTG9nbyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjA0OCAxNzczLjYyIj4gIDx0aXRsZT52eXBlci1sb2dvLWZsYXQ8L3RpdGxlPiAgPHBvbHlsaW5lIHBvaW50cz0iMTAyNCA4ODYuODEgNzY4IDEzMzAuMjIgMTAyNCAxNzczLjYyIDEyODAgMTMzMC4yMiAxMDI0IDg4Ni44MSIgc3R5bGU9ImZpbGw6IzMzMyIvPiAgPHBvbHlsaW5lIHBvaW50cz0iMTI4MCA0NDMuNDEgMTAyNCA4ODYuODEgMTI4MCAxMzMwLjIyIDE1MzYgODg2LjgxIDEyODAgNDQzLjQxIiBzdHlsZT0iZmlsbDojNjY2Ii8+ICA8cG9seWxpbmUgcG9pbnRzPSI3NjggNDQzLjQxIDUxMiA4ODYuODEgNzY4IDEzMzAuMjIgMTAyNCA4ODYuODEgNzY4IDQ0My40MSIgc3R5bGU9ImZpbGw6IzY2NiIvPiAgPHBvbHlsaW5lIHBvaW50cz0iMTUzNiAwIDEyODAgNDQzLjQxIDE1MzYgODg2LjgxIDE3OTIgNDQzLjQxIDE1MzYgMCIgc3R5bGU9ImZpbGw6IzhjOGM4YyIvPiAgPHBvbHlsaW5lIHBvaW50cz0iMTE1MiAyMjEuNyA4OTYgMjIxLjcgNzY4IDQ0My40MSAxMDI0IDg4Ni44MSAxMjgwIDQ0My40MSAxMTUyIDIyMS43IiBzdHlsZT0iZmlsbDojOGM4YzhjIi8+ICA8cG9seWxpbmUgcG9pbnRzPSI1MTIgMCAyNTYgNDQzLjQxIDUxMiA4ODYuODEgNzY4IDQ0My40MSA1MTIgMCIgc3R5bGU9ImZpbGw6IzhjOGM4YyIvPiAgPHBvbHlsaW5lIHBvaW50cz0iMjA0OCAwIDE1MzYgMCAxNzkyIDQ0My40IDIwNDggMCIgc3R5bGU9ImZpbGw6I2IyYjJiMiIvPiAgPHBvbHlsaW5lIHBvaW50cz0iNTEyIDAgMCAwIDI1NiA0NDMuNCA1MTIgMCIgc3R5bGU9ImZpbGw6I2IyYjJiMiIvPjwvc3ZnPg==",
1010
"location": "sidePanel",
1111
"repo": "https://github.com/ethereum/remix-project/tree/master/apps/vyper",
1212
"maintainedBy": "Remix",
1313
"authorContact": "[email protected]"
14-
}
14+
}

0 commit comments

Comments
 (0)