diff --git a/embark-ui/src/components/FiddleResults.js b/embark-ui/src/components/FiddleResults.js
index f59204cf..a4c883d8 100644
--- a/embark-ui/src/components/FiddleResults.js
+++ b/embark-ui/src/components/FiddleResults.js
@@ -1,16 +1,25 @@
import React from 'react';
import PropTypes from 'prop-types';
-const FiddleResults = ({warningsCard, errorsCard, fatalFiddleCard, fatalFiddleDeployCard, deployedContractsCard, fatalErrorCard, forwardedRef}) => (
-
- {fatalErrorCard}
- {fatalFiddleCard}
- {fatalFiddleDeployCard}
- {deployedContractsCard}
- {errorsCard}
- {warningsCard}
-
-);
+const FiddleResults = ({
+ warningsCard,
+ errorsCard,
+ fatalFiddleCard,
+ fatalFiddleDeployCard,
+ compiledContractsCard,
+ deployedContractsCard,
+ fatalErrorCard,
+ forwardedRef}) => (
+
+ {fatalErrorCard}
+ {fatalFiddleCard}
+ {fatalFiddleDeployCard}
+ {compiledContractsCard}
+ {deployedContractsCard}
+ {errorsCard}
+ {warningsCard}
+
+ );
FiddleResults.propTypes = {
errorsCard: PropTypes.node,
@@ -19,7 +28,8 @@ FiddleResults.propTypes = {
fatalFiddleDeployCard: PropTypes.node,
deployedContractsCard: PropTypes.node,
fatalErrorCard: PropTypes.node,
- forwardedRef: PropTypes.any
+ forwardedRef: PropTypes.any,
+ compiledContractsCard: PropTypes.node
};
export default FiddleResults;
diff --git a/embark-ui/src/containers/FiddleContainer.js b/embark-ui/src/containers/FiddleContainer.js
index 5061e787..37d01961 100644
--- a/embark-ui/src/containers/FiddleContainer.js
+++ b/embark-ui/src/containers/FiddleContainer.js
@@ -18,6 +18,7 @@ import {List, Badge, Button} from 'tabler-react';
import {NavLink} from 'react-router-dom';
import LoadingCardWithIcon from '../components/LoadingCardWithIcon';
import {hashCode} from '../utils/utils';
+import ContractFunctions from '../components/ContractFunctions';
class FiddleContainer extends Component {
@@ -74,8 +75,8 @@ class FiddleContainer extends Component {
scrollToComponent(this.ace);
}
- _onErrorSummaryClick(e, refName) {
- scrollToComponent(this[refName]);
+ _onErrorSummaryClick(e, ref) {
+ scrollToComponent(ref);
}
_onDeployClick(_e) {
@@ -188,9 +189,9 @@ class FiddleContainer extends Component {
onDeployClick={(e) => this._onDeployClick(e)}
isVisible={Boolean(fatalError || hasResult || loading)}
showDeploy={hasResult && Boolean(fiddle.compilationResult)}
- onWarningsClick={(e) => this._onErrorSummaryClick(e, "errorsCardRef")}
- onErrorsClick={(e) => this._onErrorSummaryClick(e, "warningsCardRef")}
- onFatalClick={(e) => this._onErrorSummaryClick(e, "fatalCardRef")}
+ onWarningsClick={(e) => this._onErrorSummaryClick(e, this.errorsCardRef)}
+ onErrorsClick={(e) => this._onErrorSummaryClick(e, this.warningsCardRef)}
+ onFatalClick={(e) => this._onErrorSummaryClick(e, this.fatalCardRef)}
/>
+ )}
deployedContractsCard={deployedContracts && this._renderSuccessCard("Contract(s) deployed!",