show filename in tooltip if file is a .sol file

pull/3224/head
Joseph Izang 2 years ago
parent c99347435c
commit 57848d9e8c
  1. 2
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -941,7 +941,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
placement="auto" placement="auto"
tooltipId="overlay-tooltip-compile" tooltipId="overlay-tooltip-compile"
tooltipText={<div className="text-left"> tooltipText={<div className="text-left">
{!(configFilePath === '' && state.useFileConfiguration) && <div><b>Ctrl+S</b> to compile {state.compiledFileName} </div>} {!(configFilePath === '' && state.useFileConfiguration) && <div><b>Ctrl+S</b> to compile {state.compiledFileName.includes('.sol') ? state.compiledFileName : null} </div>}
{(configFilePath === '' && state.useFileConfiguration) && <div> No config file selected</div>} {(configFilePath === '' && state.useFileConfiguration) && <div> No config file selected</div>}
</div>} </div>}
> >

Loading…
Cancel
Save