From e027ae258a5e4e5337eb1e9459da219ec6fe7726 Mon Sep 17 00:00:00 2001 From: emizzle Date: Mon, 27 Aug 2018 13:34:35 +1000 Subject: [PATCH] Hide deployment section in UI for fiddle contracts --- embark-ui/src/components/ContractLayout.js | 22 +++++++++++-------- .../src/containers/ContractLayoutContainer.js | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/embark-ui/src/components/ContractLayout.js b/embark-ui/src/components/ContractLayout.js index 13360ac9a..b30b76369 100644 --- a/embark-ui/src/components/ContractLayout.js +++ b/embark-ui/src/components/ContractLayout.js @@ -14,7 +14,7 @@ import ContractDeploymentContainer from '../containers/ContractDeploymentContain import ContractProfileContainer from '../containers/ContractProfileContainer'; import ContractSourceContainer from '../containers/ContractSourceContainer'; -const ContractLayout = ({match}) => ( +const ContractLayout = ({match, contract}) => (   @@ -28,14 +28,18 @@ const ContractLayout = ({match}) => ( > Overview - - Deployment / Utils - + {!contract.isFiddle ? + + Deployment / Utils + + : + '' + } ; + return ; } else { return ; }