Browse Source

feature(its working): fetch data when ready

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
3a670e5bd5
  1. 2
      app/components/LndSyncing/LndSyncing.js
  2. 3
      app/generate_certs.sh
  3. 6
      app/reducers/lnd.js
  4. 4
      app/routes/app/components/App.js
  5. 11
      gang.txt
  6. 2
      generate_certs.sh
  7. 1
      high.txt

2
app/components/LndSyncing/LndSyncing.js

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import styles from './LndSyncing.scss' import styles from './LndSyncing.scss'
const LndSyncing = ({ lines }) => ( const LndSyncing = () => (
<div className={styles.container}> <div className={styles.container}>
<h3>zap</h3> <h3>zap</h3>
<div className={styles.loading}> <div className={styles.loading}>

3
app/generate_certs.sh

@ -1,6 +1,5 @@
# Generate Node.js compatible certs # Generate Node.js compatible certs
echo >> gang.txt echo >> low.txt
echo "here!"
# If Lnd folder doesn't exist we have to create it # If Lnd folder doesn't exist we have to create it
if [ ! -d ~/Library/Application\ Support/Lnd ]; then if [ ! -d ~/Library/Application\ Support/Lnd ]; then

6
app/reducers/lnd.js

@ -19,9 +19,9 @@ export const lndSyncing = () => dispatch => dispatch({ type: START_SYNCING })
// Receive IPC event for LND stoping sync // Receive IPC event for LND stoping sync
export const lndSynced = () => dispatch => { export const lndSynced = () => dispatch => {
// Fetch data now that we know LND is synced // Fetch data now that we know LND is synced
fetchTicker() dispatch(fetchTicker())
fetchBalance() dispatch(fetchBalance())
fetchInfo() dispatch(fetchInfo())
dispatch({ type: STOP_SYNCING }) dispatch({ type: STOP_SYNCING })
} }

4
app/routes/app/components/App.js

@ -38,8 +38,8 @@ class App extends Component {
children children
} = this.props } = this.props
// if (lnd.syncing) { return <LndSyncing lines={lnd.lines} /> } if (lnd.syncing) { return <LndSyncing /> }
if (true) { return <LndSyncing lines={[]} /> } // if (true) { return <LndSyncing lines={[]} /> }
if (!currentTicker) { return <LoadingBolt /> } if (!currentTicker) { return <LoadingBolt /> }

11
gang.txt

@ -1,11 +0,0 @@

2
generate_certs.sh

@ -1,5 +1,5 @@
# Generate Node.js compatible certs # Generate Node.js compatible certs
echo >> gang.txt echo >> high.txt
# If Lnd folder doesn't exist we have to create it # If Lnd folder doesn't exist we have to create it
if [ ! -d ~/Library/Application\ Support/Lnd ]; then if [ ! -d ~/Library/Application\ Support/Lnd ]; then

1
high.txt

@ -0,0 +1 @@
Loading…
Cancel
Save