on master help sign in
Merge pull request #95 from urbit/jt-fix-eslint-warnings

Fix most ESLint warnings.

commitd94335459f5c638986bdb25190758d915c6d2d97 authorJared Tobin <jared@jtobin.io> dateFri 5 Apr 2019, 05:41 (8 years ago) parent71940043ca8358
4 files changed+1−13
src/Root.js−1 src/bridge/views/GenKeyfile.js+1−3 src/bridge/views/Point/Actions.js−6 src/bridge/views/SetKeys.js−3
src/Root.js−1
@@ -1,7 +1,6 @@
11import 'babel-polyfill' // required for @ledgerhq/hw-transport-u2f
22
33import React from 'react'
4−import ReactDOM from 'react-dom'
54import _ from 'lodash'
65
76import Bridge from './bridge/Bridge'
src/bridge/views/GenKeyfile.js+1−3
@@ -2,9 +2,7 @@ import React from 'react'
22import Maybe from 'folktale/maybe'
33
44import { Button } from '../components/Base'
5−import { RequiredInput, InnerLabel } from '../components/Base'
65import { Row, Col, H1, P } from '../components/Base'
7−import { Code } from '../components/Base'
86
97import * as ob from 'urbit-ob'
108import * as kg from '../../../node_modules/urbit-key-generation/dist/index'
@@ -96,7 +94,7 @@ class GenKeyfile extends React.Component {
9694 }
9795
9896 render() {
99− const { point, pointDetails, revision } = this.getPointDetails();
97+ const { point, revision } = this.getPointDetails();
10098 const { keyfile, loaded } = this.state
10199
102100 return (
src/bridge/views/Point/Actions.js−6
@@ -24,12 +24,6 @@ const Actions = (props) => {
2424 }
2525 })
2626
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−
3327 const canSetSpawnProxy = pointDetails.matchWith({
3428 Nothing: _ => false,
3529 Just: details =>
src/bridge/views/SetKeys.js−3
@@ -3,7 +3,6 @@ import Maybe from 'folktale/maybe'
33import * as azimuth from 'azimuth-js'
44import * as ob from 'urbit-ob'
55import { Row, Col, H1, P, Warning, H3 } from '../components/Base'
6−import { RequiredInput, InnerLabel } from '../components/Base'
76
87import StatelessTransaction from '../components/StatelessTransaction'
98import { BRIDGE_ERROR } from '../lib/error'
@@ -12,8 +11,6 @@ import { attemptSeedDerivation, genKey } from '../lib/keys'
1211
1312import saveAs from 'file-saver'
1413
15−import { WALLET_NAMES } from '../lib/wallet'
16−
1714import * as kg from '../../../node_modules/urbit-key-generation/dist/index'
1815
1916import {