on master help sign in
Fix most ESLint warnings.
3ca8358Jared Tobin
src/Root.js−1
@@ -1,7 +1,6 @@
1import 'babel-polyfill' // required for @ledgerhq/hw-transport-u2f
1import 'babel-polyfill' // required for @ledgerhq/hw-transport-u2f
2
2
3import React from 'react'
3import React from 'react'
4−import ReactDOM from 'react-dom'
5import _ from 'lodash'
4import _ from 'lodash'
6
5
7import Bridge from './bridge/Bridge'
6import Bridge from './bridge/Bridge'
src/bridge/views/GenKeyfile.js+1−3
@@ -2,9 +2,7 @@ import React from 'react'
2import Maybe from 'folktale/maybe'
2import Maybe from 'folktale/maybe'
3
3
4import { Button } from '../components/Base'
4import { Button } from '../components/Base'
5−import { RequiredInput, InnerLabel } from '../components/Base'
6import { Row, Col, H1, P } from '../components/Base'
5import { Row, Col, H1, P } from '../components/Base'
7−import { Code } from '../components/Base'
8
6
9import * as ob from 'urbit-ob'
7import * as ob from 'urbit-ob'
10import * as kg from '../../../node_modules/urbit-key-generation/dist/index'
8import * as kg from '../../../node_modules/urbit-key-generation/dist/index'
@@ -96,7 +94,7 @@ class GenKeyfile extends React.Component {
96 }
94 }
97
95
98 render() {
96 render() {
99− const { point, pointDetails, revision } = this.getPointDetails();
97+ const { point, revision } = this.getPointDetails();
100 const { keyfile, loaded } = this.state
98 const { keyfile, loaded } = this.state
101
99
102 return (
100 return (
src/bridge/views/Point/Actions.js−6
@@ -24,12 +24,6 @@ const Actions = (props) => {
24 }
24 }
25 })
25 })
26
26
27− const canSetTransferProxy = pointDetails.matchWith({
28− // also should check is addr is operator
29− Nothing: _ => false,
30− Just: details => eqAddr(details.value.owner, addr)
31− })
32−
33 const canSetSpawnProxy = pointDetails.matchWith({
27 const canSetSpawnProxy = pointDetails.matchWith({
34 Nothing: _ => false,
28 Nothing: _ => false,
35 Just: details =>
29 Just: details =>
src/bridge/views/SetKeys.js−3
@@ -3,7 +3,6 @@ import Maybe from 'folktale/maybe'
3import * as azimuth from 'azimuth-js'
3import * as azimuth from 'azimuth-js'
4import * as ob from 'urbit-ob'
4import * as ob from 'urbit-ob'
5import { Row, Col, H1, P, Warning, H3 } from '../components/Base'
5import { Row, Col, H1, P, Warning, H3 } from '../components/Base'
6−import { RequiredInput, InnerLabel } from '../components/Base'
7
6
8import StatelessTransaction from '../components/StatelessTransaction'
7import StatelessTransaction from '../components/StatelessTransaction'
9import { BRIDGE_ERROR } from '../lib/error'
8import { BRIDGE_ERROR } from '../lib/error'
@@ -12,8 +11,6 @@ import { attemptSeedDerivation, genKey } from '../lib/keys'
12
11
13import saveAs from 'file-saver'
12import saveAs from 'file-saver'
14
13
15−import { WALLET_NAMES } from '../lib/wallet'
16−
17import * as kg from '../../../node_modules/urbit-key-generation/dist/index'
14import * as kg from '../../../node_modules/urbit-key-generation/dist/index'
18
15
19import {
16import {