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}) => (
|
||||
<LayoutContract contract={contract} cardTitle={
|
||||
<a href='#toggleContract' onClick={() => toggleContractOverview(contract)}>
|
||||
{contract.address && `${contract.className} deployed at ${contract.address}`}
|
||||
{!contract.address && `${contract.className} not deployed`}
|
||||
</a>
|
||||
<React.Fragment>
|
||||
<a href='#toggleContract' onClick={() => toggleContractOverview(contract)}>{contract.className}</a>
|
||||
<span>{contract.address && `deployed at ${contract.address}` || "not deployed"}</span>
|
||||
</React.Fragment>
|
||||
}>
|
||||
{contract.address && <p><strong>Arguments:</strong> {JSON.stringify(contract.args)}</p>}
|
||||
{contract.transactionHash &&
|
||||
|
|
Loading…
Reference in New Issue