mirror of https://github.com/embarklabs/embark.git
hide interfaces in contract deployment page
This commit is contained in:
parent
c25c644b5a
commit
2f4625c143
|
@ -81,7 +81,7 @@ const DeploymentResult = ({deployment}) => {
|
||||||
|
|
||||||
DeploymentResult.propTypes = {
|
DeploymentResult.propTypes = {
|
||||||
deployment: PropTypes.object
|
deployment: PropTypes.object
|
||||||
}
|
};
|
||||||
|
|
||||||
const GasEstimateResult = ({gasEstimate}) => {
|
const GasEstimateResult = ({gasEstimate}) => {
|
||||||
if (gasEstimate.running) {
|
if (gasEstimate.running) {
|
||||||
|
@ -249,6 +249,9 @@ ContractsHeader.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const Contract = ({web3, contract, deploymentPipeline, web3Deploy, web3EstimateGas, web3Deployments, web3GasEstimates, toggleContractOverview}) => {
|
const Contract = ({web3, contract, deploymentPipeline, web3Deploy, web3EstimateGas, web3Deployments, web3GasEstimates, toggleContractOverview}) => {
|
||||||
|
if (!contract.code && !contract.deploy) {
|
||||||
|
return <React.Fragment/>;
|
||||||
|
}
|
||||||
const deployment = web3Deployments[contract.className];
|
const deployment = web3Deployments[contract.className];
|
||||||
const gasEstimate = web3GasEstimates[contract.className];
|
const gasEstimate = web3GasEstimates[contract.className];
|
||||||
switch (deploymentPipeline) {
|
switch (deploymentPipeline) {
|
||||||
|
@ -262,7 +265,7 @@ const Contract = ({web3, contract, deploymentPipeline, web3Deploy, web3EstimateG
|
||||||
web3Deploy={web3Deploy}
|
web3Deploy={web3Deploy}
|
||||||
web3EstimateGas={web3EstimateGas}/>;
|
web3EstimateGas={web3EstimateGas}/>;
|
||||||
default:
|
default:
|
||||||
return <React.Fragment></React.Fragment>;
|
return <React.Fragment/>;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue