Browse Source

fix(lint): fix linting errors

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

5
app/main.dev.js

@ -128,10 +128,11 @@ const sendLndSynced = () => {
// Starts the LND node
const startLnd = () => {
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')
:
} else {
lndPath = path.join(__dirname, '..', 'bin', plat === 'win32' ? 'lnd.exe' : 'lnd')
}
const neutrino = spawn(lndPath,
[

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

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

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

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

Loading…
Cancel
Save