Browse Source

fix(lint): fix linting errors

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
468a4f1dc4
  1. 4
      app/components/LndSyncing/LndSyncing.js
  2. 5
      app/main.dev.js
  3. 10
      app/routes/help/components/Help.js
  4. 2
      app/routes/help/containers/HelpContainer.js

4
app/components/LndSyncing/LndSyncing.js

@ -38,7 +38,7 @@ class LndSyncing extends Component {
componentDidUpdate(prevProps) { componentDidUpdate(prevProps) {
const { grpcStarted, newAddress } = this.props const { grpcStarted, newAddress } = this.props
if (!prevProps.grpcStarted && grpcStarted) { if (!prevProps.grpcStarted && grpcStarted) {
newAddress('np2wkh') newAddress('np2wkh')
} }
@ -51,7 +51,7 @@ class LndSyncing extends Component {
const copyOnClick = () => { const copyOnClick = () => {
if (!address) { return } if (!address) { return }
copy(address) copy(address)
showNotification('Noice', 'Successfully copied to clipboard') showNotification('Noice', 'Successfully copied to clipboard')
} }

5
app/main.dev.js

@ -128,10 +128,11 @@ const sendLndSynced = () => {
// Starts the LND node // Starts the LND node
const startLnd = () => { const startLnd = () => {
let lndPath let lndPath
process.env.NODE_ENV === 'development' ? if (process.env.NODE_ENV === 'development') {
lndPath = path.join(__dirname, '..', 'resources', 'bin', plat, plat === 'win32' ? 'lnd.exe' : 'lnd') lndPath = path.join(__dirname, '..', 'resources', 'bin', plat, plat === 'win32' ? 'lnd.exe' : 'lnd')
: } else {
lndPath = path.join(__dirname, '..', 'bin', plat === 'win32' ? 'lnd.exe' : 'lnd') lndPath = path.join(__dirname, '..', 'bin', plat === 'win32' ? 'lnd.exe' : 'lnd')
}
const neutrino = spawn(lndPath, const neutrino = spawn(lndPath,
[ [

10
app/routes/help/components/Help.js

@ -1,6 +1,5 @@
import { shell } from 'electron' import { shell } from 'electron'
import React, { Component } from 'react' import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { MdSearch } from 'react-icons/lib/md' import { MdSearch } from 'react-icons/lib/md'
@ -67,17 +66,18 @@ class Help extends Component {
<ul className={styles.videos}> <ul className={styles.videos}>
{ {
filteredVideos.map((video, index) => filteredVideos.map((video, index) => (
<li key={index}> <li key={index}>
<iframe <iframe
src={`https://www.youtube.com/embed/${video.id}`} src={`https://www.youtube.com/embed/${video.id}`}
frameBorder='0' frameBorder='0'
title={video.id}
/> />
<section className={styles.info} onClick={() => shell.openExternal(`https://www.youtube.com/watch?v=${video.id}`)}> <section className={styles.info} onClick={() => shell.openExternal(`https://www.youtube.com/watch?v=${video.id}`)}>
<h2>{video.title}</h2> <h2>{video.title}</h2>
</section> </section>
</li> </li>
) ))
} }
</ul> </ul>
</div> </div>
@ -85,8 +85,4 @@ class Help extends Component {
} }
} }
Help.propTypes = {
}
export default Help export default Help

2
app/routes/help/containers/HelpContainer.js

@ -5,6 +5,6 @@ import Help from '../components/Help'
const mapDispatchToProps = {} const mapDispatchToProps = {}
const mapStateToProps = state => ({}) const mapStateToProps = () => ({})
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Help)) export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Help))

Loading…
Cancel
Save