on master help sign in
- fix ESLint warnings
commit6d86c68410dac9670a304624161174f651e3e1ed authorChris Johnson <chris@cjohnson.io> dateTue 9 Apr 2019, 14:57 (8 years ago) parent56d2688
2 files changed+6−16
src/bridge/components/StatelessTransaction.js+4−6 src/bridge/views/Wallet.js+2−10
src/bridge/components/StatelessTransaction.js+4−6
@@ -4,7 +4,7 @@ import React from 'react'
44import { Code, H3 } from './Base'
55import { Button } from './Base'
66import { CheckboxButton, Input, InnerLabel,
7− InnerLabelDropdown, DropdownItem } from './Base'
7+ InnerLabelDropdown } from './Base'
88import { Warning } from '../components/Base'
99
1010import { addressFromSecp256k1Public } from '../lib/wallet'
@@ -29,7 +29,6 @@ class StatelessTransaction extends React.Component {
2929 showGasDetails: false,
3030 userApproval: false,
3131 chainId: '',
32− chainDropdownOpen: false,
3332 customChain: false,
3433 nonce: '',
3534 stx: Nothing(),
@@ -245,11 +244,10 @@ class StatelessTransaction extends React.Component {
245244 const { web3, canGenerate } = this.props
246245 const { gasPrice, gasLimit, nonce, chainId,
247246 txn, stx, userApproval, showGasDetails,
248− customChain, chainDropdownOpen } = this.state
247+ customChain } = this.state
249248
250− const { setNonce, setChainId, setGasLimit, setGasPrice,
251− toggleGasDetails, setUserApproval, sendTxn, createUnsignedTxn,
252− selectChain, handleChainUpdate } = this
249+ const { setNonce, setChainId, setGasLimit, setGasPrice, toggleGasDetails,
250+ setUserApproval, sendTxn, createUnsignedTxn, handleChainUpdate } = this
253251
254252 const { state } = this
255253
src/bridge/views/Wallet.js+2−10
@@ -1,21 +1,13 @@
11import Maybe from 'folktale/maybe'
22import React from 'react'
33import { Button, H1, P } from '../components/Base'
4−import {
5− InnerLabelDropdown,
6− DropdownItem,
7− DropdownDivider
8−} from '../components/Base'
4+import { InnerLabelDropdown } from '../components/Base'
95import { Row, Col } from '../components/Base'
106
117import { ROUTE_NAMES } from '../lib/router'
128import { WALLET_NAMES, renderWalletType } from '../lib/wallet'
139
1410class Wallet extends React.Component {
15− constructor(props) {
16− super(props)
17− }
18−
1911 componentDidMount() {
2012 const { setWallet } = this.props
2113 setWallet(Maybe.Nothing())
@@ -51,7 +43,7 @@ class Wallet extends React.Component {
5143 }
5244
5345 render() {
54− const { props, state } = this
46+ const { props } = this
5547 const walletOptions = this.getWalletOptions()
5648
5749 return (