mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
Fix contract deployment headers
This will make the only linkable section of the title be the contract name.
This commit is contained in:
parent
b02cafe672
commit
dafd81ecbf
@ -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…
x
Reference in New Issue
Block a user