remove currentFile dep

pull/5370/head
yann300 3 years ago
parent bc07a8cfcf
commit 639e147034
  1. 3
      libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx
  2. 1
      libs/remix-ui/solidity-compiler/src/lib/types/index.ts

@ -9,7 +9,7 @@ import { Renderer } from '@remix-ui/renderer' // eslint-disable-line
import './css/style.css'
export const SolidityCompiler = (props: SolidityCompilerProps) => {
const { plugin, plugin: { compileTabLogic, currentFile, fileProvider, fileManager, contractsDetails, contractMap, compileErrors, isHardHatProject, setHardHatCompilation, configurationSettings } } = props
const { plugin, plugin: { compileTabLogic, fileProvider, fileManager, contractsDetails, contractMap, compileErrors, isHardHatProject, setHardHatCompilation, configurationSettings } } = props
const [state, setState] = useState({
contractsDetails: {},
eventHandlers: {},
@ -75,6 +75,7 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => {
</div>
)
const currentFile = plugin.getConfiguration('currentFile')
return (
<>
<div id="compileTabView">

@ -6,7 +6,6 @@ export interface SolidityCompilerProps {
compileErrors: any,
isHardHatProject: boolean,
compileTabLogic: any,
currentFile: string,
contractsDetails: Record<string, any>,
fileProvider: any,
fileManager: any,

Loading…
Cancel
Save