Add read-only inputs to UI plus Copy to Clipboard buttons (#3095)

* Adds readOnly prop to Input, convert disabled props to it (#3066)

* WIP

* Adds copy icon to readOnly Input (#3009)

* Added Copy to Clipboard buttons on the UI (#3009)

* copiable to allowCopy props #3095

* Padded copy icons (#3095)

* Fixed password width in account creation

* Copyable value in MethodDecoding
This commit is contained in:
Nicolas Gotchac
2016-11-02 17:25:34 +01:00
committed by Jaco Greeff
parent f3d4aa43f3
commit e4c75bde4c
23 changed files with 314 additions and 95 deletions

View File

@@ -42,7 +42,8 @@ class Application extends Component {
children: PropTypes.node,
netChain: PropTypes.string,
isTest: PropTypes.bool,
pending: PropTypes.array
pending: PropTypes.array,
blockNumber: PropTypes.object
}
state = {
@@ -73,7 +74,7 @@ class Application extends Component {
}
renderApp () {
const { children, pending, netChain, isTest } = this.props;
const { children, pending, netChain, isTest, blockNumber } = this.props;
const { showFirstRun } = this.state;
return (
@@ -85,7 +86,7 @@ class Application extends Component {
isTest={ isTest }
pending={ pending } />
{ children }
<Status />
{ blockNumber ? (<Status />) : null }
</Container>
);
}
@@ -124,7 +125,7 @@ class Application extends Component {
}
function mapStateToProps (state) {
const { netChain, isTest } = state.nodeStatus;
const { netChain, isTest, blockNumber } = state.nodeStatus;
const { hasAccounts } = state.personal;
const { pending } = state.signer;
@@ -132,7 +133,8 @@ function mapStateToProps (state) {
hasAccounts,
netChain,
isTest,
pending
pending,
blockNumber
};
}