Merge pull request #177 from status-im/feature/deployment-header-improvement

Fix contract deployment headers
This commit is contained in:
Iuri Matias 2018-10-29 12:07:22 +01:00 committed by GitHub
commit 6a9c067167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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>&nbsp;
<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 &&