add tooltip

pull/5270/head
yann300 1 month ago committed by Aniket
parent afe5594de5
commit a3496cfe8d
  1. 7
      apps/vyper/src/app/components/CompilerButton.tsx

@ -1,4 +1,5 @@
import React, { Fragment, useEffect, useState } from 'react'
import { CustomTooltip } from "@remix-ui/helper";
import { isVyper, compile, toStandardOutput, isCompilationError, remixClient, normalizeContractPath, compileContract, RemixClient } from '../utils'
import Button from 'react-bootstrap/Button'
@ -26,6 +27,11 @@ function CompilerButton({ contract, setOutput, compilerUrl, resetCompilerState,
return (
<Fragment>
<CustomTooltip
placement="auto"
tooltipId="overlay-tooltip-compile"
tooltipText={contract}
>
<button data-id="compile"
onClick={async () => {
setLoadingSpinnerState(true)
@ -41,6 +47,7 @@ function CompilerButton({ contract, setOutput, compilerUrl, resetCompilerState,
</div>
</div>
</button>
</CustomTooltip>
</Fragment>
)
}

Loading…
Cancel
Save