aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-04 10:17:46 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-04 10:17:46 +0800
commitbaee076348a913529834f7d57239e2ded460aa0a (patch)
tree87b97769b4ccceb9bce0747e017f0af9a72cd789 /ui
parent6f14f4b717c7f1d86611994473ff7c33059218c6 (diff)
downloadtangerine-wallet-browser-baee076348a913529834f7d57239e2ded460aa0a.tar
tangerine-wallet-browser-baee076348a913529834f7d57239e2ded460aa0a.tar.gz
tangerine-wallet-browser-baee076348a913529834f7d57239e2ded460aa0a.tar.bz2
tangerine-wallet-browser-baee076348a913529834f7d57239e2ded460aa0a.tar.lz
tangerine-wallet-browser-baee076348a913529834f7d57239e2ded460aa0a.tar.xz
tangerine-wallet-browser-baee076348a913529834f7d57239e2ded460aa0a.tar.zst
tangerine-wallet-browser-baee076348a913529834f7d57239e2ded460aa0a.zip
Lint ui/app
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js17
-rw-r--r--ui/app/components/account-dropdowns.js6
-rw-r--r--ui/app/components/notice.js2
3 files changed, 11 insertions, 14 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 2566a7515..0592496fc 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -31,7 +31,6 @@ const HDCreateVaultComplete = require('./keychains/hd/create-vault-complete')
const HDRestoreVaultScreen = require('./keychains/hd/restore-vault')
const RevealSeedConfirmation = require('./keychains/hd/recover-seed/confirmation')
const AccountDropdowns = require('./components/account-dropdowns').AccountDropdowns
-const ethUtil = require('ethereumjs-util')
module.exports = connect(mapStateToProps)(App)
@@ -44,8 +43,7 @@ function mapStateToProps (state) {
accounts,
address,
} = state.metamask
- let selected = address || Object.keys(accounts)[0]
- // let checksumAddress = selected && ethUtil.toChecksumAddress(selected)
+ const selected = address || Object.keys(accounts)[0]
return {
// state from plugin
@@ -252,7 +250,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setProviderType('mainnet')),
style: {
- fontSize: '18px'
+ fontSize: '18px',
},
},
[
@@ -269,7 +267,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setProviderType('ropsten')),
style: {
- fontSize: '18px'
+ fontSize: '18px',
},
},
[
@@ -286,7 +284,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setProviderType('kovan')),
style: {
- fontSize: '18px'
+ fontSize: '18px',
},
},
[
@@ -303,7 +301,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setProviderType('rinkeby')),
style: {
- fontSize: '18px'
+ fontSize: '18px',
},
},
[
@@ -320,7 +318,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setDefaultRpcTarget()),
style: {
- fontSize: '18px'
+ fontSize: '18px',
},
},
[
@@ -339,7 +337,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => this.props.dispatch(actions.showConfigPage()),
style: {
- fontSize: '18px'
+ fontSize: '18px',
},
},
[
@@ -625,7 +623,6 @@ App.prototype.renderCommonRpc = function (rpcList, provider) {
if ((rpc === 'http://localhost:8545') || (rpc === rpcTarget)) {
return null
} else {
-
return h(
DropdownMenuItem,
{
diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js
index b4ae9f606..fc96ce6c5 100644
--- a/ui/app/components/account-dropdowns.js
+++ b/ui/app/components/account-dropdowns.js
@@ -37,7 +37,7 @@ class AccountDropdowns extends Component {
},
style: {
fontSize: '24px',
- }
+ },
},
[
h(
@@ -94,7 +94,7 @@ class AccountDropdowns extends Component {
Identicon,
{
style: {
- marginLeft: '10px'
+ marginLeft: '10px',
},
diameter: 32,
},
@@ -113,7 +113,7 @@ class AccountDropdowns extends Component {
Identicon,
{
style: {
- marginLeft: '10px'
+ marginLeft: '10px',
},
diameter: 32,
},
diff --git a/ui/app/components/notice.js b/ui/app/components/notice.js
index 636e82ba1..c26505193 100644
--- a/ui/app/components/notice.js
+++ b/ui/app/components/notice.js
@@ -21,7 +21,7 @@ Notice.prototype.render = function () {
return (
h('.flex-column.flex-center.flex-grow', {
style: {
- width: '100%',
+ width: '100%',
},
}, [
h('h3.flex-center.text-transform-uppercase.terms-header', {