mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +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}) => (
|
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…
x
Reference in New Issue
Block a user