Add copy address button to Contract deploy (#3199)
* Allow copy of deployed address * Pre-parse/clean JSON inputs * Revert cleanup
This commit is contained in:
parent
9db28e12ac
commit
f9f37f1c84
@ -18,7 +18,7 @@ import React, { Component, PropTypes } from 'react';
|
||||
import ActionDoneAll from 'material-ui/svg-icons/action/done-all';
|
||||
import ContentClear from 'material-ui/svg-icons/content/clear';
|
||||
|
||||
import { BusyStep, CompletedStep, Button, IdentityIcon, Modal, TxHash } from '../../ui';
|
||||
import { BusyStep, CompletedStep, CopyToClipboard, Button, IdentityIcon, Modal, TxHash } from '../../ui';
|
||||
import { ERRORS, validateAbi, validateCode, validateName } from '../../util/validation';
|
||||
|
||||
import DetailsStep from './DetailsStep';
|
||||
@ -155,6 +155,7 @@ export default class DeployContract extends Component {
|
||||
<CompletedStep>
|
||||
<div>Your contract has been deployed at</div>
|
||||
<div>
|
||||
<CopyToClipboard data={ address } label='copy address to clipboard' />
|
||||
<IdentityIcon address={ address } inline center className={ styles.identityicon } />
|
||||
<div className={ styles.address }>{ address }</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user