on master help sign in
- fix ESLint warnings
6d86c68Chris Johnson
src/bridge/components/StatelessTransaction.js+4−6
@@ -4,7 +4,7 @@ import React from 'react'
4import { Code, H3 } from './Base'
4import { Code, H3 } from './Base'
5import { Button } from './Base'
5import { Button } from './Base'
6import { CheckboxButton, Input, InnerLabel,
6import { CheckboxButton, Input, InnerLabel,
7− InnerLabelDropdown, DropdownItem } from './Base'
7+ InnerLabelDropdown } from './Base'
8import { Warning } from '../components/Base'
8import { Warning } from '../components/Base'
9
9
10import { addressFromSecp256k1Public } from '../lib/wallet'
10import { addressFromSecp256k1Public } from '../lib/wallet'
@@ -29,7 +29,6 @@ class StatelessTransaction extends React.Component {
29 showGasDetails: false,
29 showGasDetails: false,
30 userApproval: false,
30 userApproval: false,
31 chainId: '',
31 chainId: '',
32− chainDropdownOpen: false,
33 customChain: false,
32 customChain: false,
34 nonce: '',
33 nonce: '',
35 stx: Nothing(),
34 stx: Nothing(),
@@ -245,11 +244,10 @@ class StatelessTransaction extends React.Component {
245 const { web3, canGenerate } = this.props
244 const { web3, canGenerate } = this.props
246 const { gasPrice, gasLimit, nonce, chainId,
245 const { gasPrice, gasLimit, nonce, chainId,
247 txn, stx, userApproval, showGasDetails,
246 txn, stx, userApproval, showGasDetails,
248− customChain, chainDropdownOpen } = this.state
247+ customChain } = this.state
249
248
250− const { setNonce, setChainId, setGasLimit, setGasPrice,
249+ const { setNonce, setChainId, setGasLimit, setGasPrice, toggleGasDetails,
251− toggleGasDetails, setUserApproval, sendTxn, createUnsignedTxn,
250+ setUserApproval, sendTxn, createUnsignedTxn, handleChainUpdate } = this
252− selectChain, handleChainUpdate } = this
253
251
254 const { state } = this
252 const { state } = this
255
253
src/bridge/views/Wallet.js+2−10
@@ -1,21 +1,13 @@
1import Maybe from 'folktale/maybe'
1import Maybe from 'folktale/maybe'
2import React from 'react'
2import React from 'react'
3import { Button, H1, P } from '../components/Base'
3import { Button, H1, P } from '../components/Base'
4−import {
5− InnerLabelDropdown,
4+import { InnerLabelDropdown } from '../components/Base'
6− DropdownItem,
7− DropdownDivider
8−} from '../components/Base'
9import { Row, Col } from '../components/Base'
5import { Row, Col } from '../components/Base'
10
6
11import { ROUTE_NAMES } from '../lib/router'
7import { ROUTE_NAMES } from '../lib/router'
12import { WALLET_NAMES, renderWalletType } from '../lib/wallet'
8import { WALLET_NAMES, renderWalletType } from '../lib/wallet'
13
9
14class Wallet extends React.Component {
10class Wallet extends React.Component {
15− constructor(props) {
16− super(props)
17− }
18−
19 componentDidMount() {
11 componentDidMount() {
20 const { setWallet } = this.props
12 const { setWallet } = this.props
21 setWallet(Maybe.Nothing())
13 setWallet(Maybe.Nothing())
@@ -51,7 +43,7 @@ class Wallet extends React.Component {
51 }
43 }
52
44
53 render() {
45 render() {
54− const { props, state } = this
46+ const { props } = this
55 const walletOptions = this.getWalletOptions()
47 const walletOptions = this.getWalletOptions()
56
48
57 return (
49 return (