Fix contract deployment headers

This will make the only linkable section of the title be the contract
name.
This commit is contained in:
Andre Medeiros 2018-10-28 13:43:29 +01:00
parent b02cafe672
commit dafd81ecbf

View File

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