0 ? styles.positive : styles.negative}`}>
+
0 ? styles.positive : styles.negative}`}
+ >
- 0 ? styles.plus : styles.minus}>{transaction.amount > 0 ? '+' : '-'}
-
+ 0 ? styles.plus : styles.minus}>
+ {transaction.amount > 0 ? '+' : '-'}
+
+
{currencyName}
diff --git a/app/routes/app/components/App.js b/app/routes/app/components/App.js
index 38c53f79..b48d0e43 100644
--- a/app/routes/app/components/App.js
+++ b/app/routes/app/components/App.js
@@ -18,7 +18,15 @@ import styles from './App.scss'
class App extends Component {
componentWillMount() {
- const { fetchTicker, fetchInfo, newAddress, fetchChannels, fetchSuggestedNodes, fetchBalance, fetchDescribeNetwork } = this.props
+ const {
+ fetchTicker,
+ fetchInfo,
+ newAddress,
+ fetchChannels,
+ fetchSuggestedNodes,
+ fetchBalance,
+ fetchDescribeNetwork
+ } = this.props
// fetch price ticker
fetchTicker()
@@ -75,7 +83,11 @@ class App extends Component {
{children}
- {contactsFormProps.contactsform.isOpen ? : }
+ {contactsFormProps.contactsform.isOpen ? (
+
+ ) : (
+
+ )}
diff --git a/app/routes/app/containers/AppContainer.js b/app/routes/app/containers/AppContainer.js
index c83bf419..7c15c267 100644
--- a/app/routes/app/containers/AppContainer.js
+++ b/app/routes/app/containers/AppContainer.js
@@ -11,9 +11,20 @@ import { fetchInfo } from 'reducers/info'
import { setFormType } from 'reducers/form'
-import { setPayAmount, setPayInput, setCurrencyFilters, updatePayErrors, payFormSelectors } from 'reducers/payform'
+import {
+ setPayAmount,
+ setPayInput,
+ setCurrencyFilters,
+ updatePayErrors,
+ payFormSelectors
+} from 'reducers/payform'
-import { setRequestAmount, setRequestMemo, setRequestCurrencyFilters, requestFormSelectors } from 'reducers/requestform'
+import {
+ setRequestAmount,
+ setRequestMemo,
+ setRequestCurrencyFilters,
+ requestFormSelectors
+} from 'reducers/requestform'
import { sendCoins } from 'reducers/transaction'
@@ -230,7 +241,10 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
if (!stateProps.payFormIsValid.isValid) {
dispatchProps.updatePayErrors({
amount: Object.prototype.hasOwnProperty.call(stateProps.payFormIsValid.errors, 'amount'),
- payInput: Object.prototype.hasOwnProperty.call(stateProps.payFormIsValid.errors, 'payInput')
+ payInput: Object.prototype.hasOwnProperty.call(
+ stateProps.payFormIsValid.errors,
+ 'payInput'
+ )
})
return
@@ -312,7 +326,9 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
suggestedNodesProps: {
suggestedNodesLoading: stateProps.channels.suggestedNodesLoading,
- suggestedNodes: stateProps.info.data.testnet ? stateProps.channels.suggestedNodes.testnet : stateProps.channels.suggestedNodes.mainnet,
+ suggestedNodes: stateProps.info.data.testnet
+ ? stateProps.channels.suggestedNodes.testnet
+ : stateProps.channels.suggestedNodes.mainnet,
setNode: dispatchProps.setNode,
openSubmitChannelForm: () => dispatchProps.setChannelFormType('SUBMIT_CHANNEL_FORM')
@@ -404,7 +420,9 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
setContactsCurrencyFilters: dispatchProps.setContactsCurrencyFilters,
setCurrencyFilters: dispatchProps.setCurrencyFilters,
onCurrencyFilterClick: currency => {
- dispatchProps.updateContactCapacity(btc.convert(stateProps.ticker.currency, currency, stateProps.contactsform.contactCapacity))
+ dispatchProps.updateContactCapacity(
+ btc.convert(stateProps.ticker.currency, currency, stateProps.contactsform.contactCapacity)
+ )
dispatchProps.setCurrency(currency)
dispatchProps.setContactsCurrencyFilters(false)
}
diff --git a/app/store/configureStore.dev.js b/app/store/configureStore.dev.js
index 7c6883cb..25ae4a43 100644
--- a/app/store/configureStore.dev.js
+++ b/app/store/configureStore.dev.js
@@ -49,7 +49,8 @@ const configureStore = initialState => {
const store = createStore(rootReducer, initialState, enhancer)
if (module.hot) {
- module.hot.accept('../reducers', () => store.replaceReducer(require('../reducers'))) // eslint-disable-line global-require
+ // eslint-disable-next-line global-require
+ module.hot.accept('../reducers', () => store.replaceReducer(require('../reducers')))
}
return store
diff --git a/app/utils/blockExplorer.js b/app/utils/blockExplorer.js
index e7bea0ba..afa075d0 100644
--- a/app/utils/blockExplorer.js
+++ b/app/utils/blockExplorer.js
@@ -2,7 +2,8 @@ import { shell } from 'electron'
const showTransaction = (network, txid) => shell.openExternal(`${network.explorerUrl}/tx/${txid}`)
-const showBlock = (network, blockHash) => shell.openExternal(`${network.explorerUrl}/block/${blockHash}`)
+const showBlock = (network, blockHash) =>
+ shell.openExternal(`${network.explorerUrl}/block/${blockHash}`)
const showChannelClosing = channel => showTransaction(channel.closing_txid)
diff --git a/internals/scripts/CheckBuiltsExist.js b/internals/scripts/CheckBuiltsExist.js
index ef876c3c..871163a3 100644
--- a/internals/scripts/CheckBuiltsExist.js
+++ b/internals/scripts/CheckBuiltsExist.js
@@ -9,11 +9,19 @@ function CheckBuildsExist() {
const rendererPath = path.join(__dirname, '..', '..', 'app', 'dist', 'renderer.prod.js')
if (!fs.existsSync(mainPath)) {
- throw new Error(chalk.whiteBright.bgRed.bold('The main process is not built yet. Build it by running "npm run build-main"'))
+ throw new Error(
+ chalk.whiteBright.bgRed.bold(
+ 'The main process is not built yet. Build it by running "npm run build-main"'
+ )
+ )
}
if (!fs.existsSync(rendererPath)) {
- throw new Error(chalk.whiteBright.bgRed.bold('The renderer process is not built yet. Build it by running "npm run build-renderer"'))
+ throw new Error(
+ chalk.whiteBright.bgRed.bold(
+ 'The renderer process is not built yet. Build it by running "npm run build-renderer"'
+ )
+ )
}
}
diff --git a/test/reducers/channels.spec.js b/test/reducers/channels.spec.js
index 26120e99..56f43415 100644
--- a/test/reducers/channels.spec.js
+++ b/test/reducers/channels.spec.js
@@ -43,7 +43,9 @@ describe('reducers', () => {
})
it('should correctly setChannel', () => {
- expect(channelsReducer(undefined, { type: SET_CHANNEL, channel: 'channel' })).toMatchSnapshot()
+ expect(
+ channelsReducer(undefined, { type: SET_CHANNEL, channel: 'channel' })
+ ).toMatchSnapshot()
})
it('should correctly getChannels', () => {
@@ -51,7 +53,13 @@ describe('reducers', () => {
})
it('should correctly receiveChannel', () => {
- expect(channelsReducer(undefined, { type: RECEIVE_CHANNELS, channels: [1, 2], pendingChannels: [3, 4] })).toMatchSnapshot()
+ expect(
+ channelsReducer(undefined, {
+ type: RECEIVE_CHANNELS,
+ channels: [1, 2],
+ pendingChannels: [3, 4]
+ })
+ ).toMatchSnapshot()
})
it('should correctly openingChannel', () => {
diff --git a/test/reducers/invoice.spec.js b/test/reducers/invoice.spec.js
index 3e84aba4..7bbbc099 100644
--- a/test/reducers/invoice.spec.js
+++ b/test/reducers/invoice.spec.js
@@ -58,7 +58,9 @@ describe('reducers', () => {
})
it('should correctly searchInvoices', () => {
- expect(invoiceReducer(undefined, { type: SEARCH_INVOICES, invoicesSearchText: 'foo' })).toMatchSnapshot()
+ expect(
+ invoiceReducer(undefined, { type: SEARCH_INVOICES, invoicesSearchText: 'foo' })
+ ).toMatchSnapshot()
})
it('should correctly setInvoice', () => {
@@ -74,7 +76,9 @@ describe('reducers', () => {
})
it('should correctly receiveFormInvoice', () => {
- expect(invoiceReducer(undefined, { type: RECEIVE_FORM_INVOICE, formInvoice: { payreq: 'foo' } })).toMatchSnapshot()
+ expect(
+ invoiceReducer(undefined, { type: RECEIVE_FORM_INVOICE, formInvoice: { payreq: 'foo' } })
+ ).toMatchSnapshot()
})
it('should correctly getInvoices', () => {
@@ -82,7 +86,9 @@ describe('reducers', () => {
})
it('should correctly receiveInvoices', () => {
- expect(invoiceReducer(undefined, { type: RECEIVE_INVOICES, invoices: [1, 2] })).toMatchSnapshot()
+ expect(
+ invoiceReducer(undefined, { type: RECEIVE_INVOICES, invoices: [1, 2] })
+ ).toMatchSnapshot()
})
it('should correctly sendInvoice', () => {
@@ -90,7 +96,9 @@ describe('reducers', () => {
})
it('should correctly invcoiceSuccessful', () => {
- expect(invoiceReducer(undefined, { type: INVOICE_SUCCESSFUL, invoice: 'foo' })).toMatchSnapshot()
+ expect(
+ invoiceReducer(undefined, { type: INVOICE_SUCCESSFUL, invoice: 'foo' })
+ ).toMatchSnapshot()
})
it('should correctly invcoiceFailed', () => {
diff --git a/test/reducers/payment.spec.js b/test/reducers/payment.spec.js
index 743e64e3..3d2fb436 100644
--- a/test/reducers/payment.spec.js
+++ b/test/reducers/payment.spec.js
@@ -42,11 +42,15 @@ describe('reducers', () => {
})
it('should correctly receivePayments', () => {
- expect(paymentReducer(undefined, { type: RECEIVE_PAYMENTS, payments: [1, 2] })).toMatchSnapshot()
+ expect(
+ paymentReducer(undefined, { type: RECEIVE_PAYMENTS, payments: [1, 2] })
+ ).toMatchSnapshot()
})
it('should correctly paymentSuccessful', () => {
- expect(paymentReducer(undefined, { type: PAYMENT_SUCCESSFULL, payment: 'foo' })).toMatchSnapshot()
+ expect(
+ paymentReducer(undefined, { type: PAYMENT_SUCCESSFULL, payment: 'foo' })
+ ).toMatchSnapshot()
})
})
})
diff --git a/test/reducers/ticker.spec.js b/test/reducers/ticker.spec.js
index af032e62..3ac6ab40 100644
--- a/test/reducers/ticker.spec.js
+++ b/test/reducers/ticker.spec.js
@@ -1,4 +1,9 @@
-import tickerReducer, { SET_CURRENCY, SET_CRYPTO, GET_TICKERS, RECIEVE_TICKERS } from '../../app/reducers/ticker'
+import tickerReducer, {
+ SET_CURRENCY,
+ SET_CRYPTO,
+ GET_TICKERS,
+ RECIEVE_TICKERS
+} from '../../app/reducers/ticker'
describe('reducers', () => {
describe('tickerReducer', () => {
diff --git a/test/runTests.js b/test/runTests.js
index 6d65ad27..1c1598fb 100644
--- a/test/runTests.js
+++ b/test/runTests.js
@@ -2,8 +2,13 @@ const spawn = require('cross-spawn')
const path = require('path')
const s = `\\${path.sep}`
-const pattern = process.argv[2] === 'e2e' ? `test${s}e2e${s}.+\\.spec\\.js` : `test${s}(?!e2e${s})[^${s}]+${s}.+\\.spec\\.js$`
+const pattern =
+ process.argv[2] === 'e2e'
+ ? `test${s}e2e${s}.+\\.spec\\.js`
+ : `test${s}(?!e2e${s})[^${s}]+${s}.+\\.spec\\.js$`
-const result = spawn.sync(path.normalize('./node_modules/.bin/jest'), [pattern], { stdio: 'inherit' })
+const result = spawn.sync(path.normalize('./node_modules/.bin/jest'), [pattern], {
+ stdio: 'inherit'
+})
process.exit(result.status)
diff --git a/webpack.config.renderer.dev.js b/webpack.config.renderer.dev.js
index 192f00a7..71cb522f 100644
--- a/webpack.config.renderer.dev.js
+++ b/webpack.config.renderer.dev.js
@@ -25,7 +25,9 @@ const manifest = path.resolve(dll, 'renderer.json')
* Warn if the DLL is not built
*/
if (!(fs.existsSync(dll) && fs.existsSync(manifest))) {
- mainLog.info('The DLL files are missing. Sit back while we build them for you with "npm run build-dll"')
+ mainLog.info(
+ 'The DLL files are missing. Sit back while we build them for you with "npm run build-dll"'
+ )
execSync('npm run build-dll')
}