Merge pull request #177 from status-im/feature/deployment-header-improvement
Fix contract deployment headers
This commit is contained in:
commit
6a9c067167
|
@ -160,10 +160,10 @@ class Web3Contract extends React.Component {
|
||||||
|
|
||||||
const EmbarkContract = ({contract, toggleContractOverview}) => (
|
const EmbarkContract = ({contract, toggleContractOverview}) => (
|
||||||
<LayoutContract contract={contract} cardTitle={
|
<LayoutContract contract={contract} cardTitle={
|
||||||
<a href='#toggleContract' onClick={() => toggleContractOverview(contract)}>
|
<React.Fragment>
|
||||||
{contract.address && `${contract.className} deployed at ${contract.address}`}
|
<a href='#toggleContract' onClick={() => toggleContractOverview(contract)}>{contract.className}</a>
|
||||||
{!contract.address && `${contract.className} not deployed`}
|
<span>{contract.address && `deployed at ${contract.address}` || "not deployed"}</span>
|
||||||
</a>
|
</React.Fragment>
|
||||||
}>
|
}>
|
||||||
{contract.address && <p><strong>Arguments:</strong> {JSON.stringify(contract.args)}</p>}
|
{contract.address && <p><strong>Arguments:</strong> {JSON.stringify(contract.args)}</p>}
|
||||||
{contract.transactionHash &&
|
{contract.transactionHash &&
|
||||||
|
|
Loading…
Reference in New Issue