diff --git a/src/assets/styles/containers/TokenListContainer.less b/src/assets/styles/containers/TokenListContainer.less index da793d2..832ad6d 100644 --- a/src/assets/styles/containers/TokenListContainer.less +++ b/src/assets/styles/containers/TokenListContainer.less @@ -162,6 +162,9 @@ padding: 15px 25px; } } + td { + cursor: pointer; + } input { height: 40px; font-family: @nrl-monospace; diff --git a/src/containers/App.js b/src/containers/App.js index adf10f3..b7997c1 100755 --- a/src/containers/App.js +++ b/src/containers/App.js @@ -1,4 +1,6 @@ import React, { Component } from 'react'; +import ReactDOM from 'react'; + // import { Provider } from 'react-redux'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import RoutesContainer from 'containers/RoutesContainer/RoutesContainer'; @@ -20,5 +22,4 @@ class App extends Component { ); } } - export default App; diff --git a/src/containers/TokenListContainer/TokenListContainer.js b/src/containers/TokenListContainer/TokenListContainer.js index a67857a..7be90d6 100644 --- a/src/containers/TokenListContainer/TokenListContainer.js +++ b/src/containers/TokenListContainer/TokenListContainer.js @@ -1,4 +1,5 @@ import React, { PureComponent } from 'react'; +import ReactDOM from 'react-dom'; import bip39 from 'bip39'; import { Row, Col, Input, Button, Layout } from 'antd'; import { confirmAlert } from 'react-confirm-alert'; @@ -112,6 +113,10 @@ class TokenListContainer extends PureComponent { }); } + copyHashToClipboard = (hashValue) => { + console.log(hashValue) + } + render () { return (
@@ -133,6 +138,7 @@ class TokenListContainer extends PureComponent { this.setState({copied: true})}> +
@@ -150,10 +156,22 @@ class TokenListContainer extends PureComponent { { this.state.tokenList.map((token, index) => { return ( - {token.name} - this.setState({mnemonic :value, copied: false})}/> - this.setState({mnemonic :value, copied: false})}/> - this.setState({mnemonic :value, copied: false})}/> +
{token.name}
+ + this.setState({copied: true})}> +
{token.address}
+
+ + + this.setState({copied: true})}> +
{token.privateKey}
+
+ + + this.setState({copied: true})}> +
{token.publicKey}
+
+ ) }) } @@ -168,5 +186,4 @@ class TokenListContainer extends PureComponent { ); } } - export default TokenListContainer; diff --git a/src/index.js b/src/index.js index d6c4171..bebebb7 100755 --- a/src/index.js +++ b/src/index.js @@ -14,5 +14,4 @@ ReactDOM.render( , document.getElementById('root') ); - registerServiceWorker();