Skip to content

Commit

Permalink
refactor(Total Balance): Remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jun 8, 2018
1 parent 87e3d8a commit f9dc9d6
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 44 deletions.
Expand Up @@ -4,16 +4,12 @@ import { bindActionCreators } from 'redux'

import { actions } from 'data'
import { getData } from './selectors'
import Success from './template.success'
import Template from './template'

class Balance extends React.PureComponent {
render () {
const { data } = this.props
return <Success
btcUnspendableContext={data.btcUnspendableContext}
bchUnspendableContext={data.bchUnspendableContext}
path={data.path}
/>
return <Template btcUnspendableContext={data.btcUnspendableContext} bchUnspendableContext={data.bchUnspendableContext} path={data.path} />
}
}

Expand Down

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions packages/blockchain-wallet-v4/src/redux/data/bch/sagas.js
Expand Up @@ -34,6 +34,7 @@ export default ({ api }) => {
const lastPage = last(pages)
if (!reset && lastPage && lastPage.map(length).getOrElse(0) === 0) { return }
const offset = reset ? 0 : length(pages) * TX_PER_PAGE
yield put(A.fetchDataLoading())
yield put(A.fetchTransactionsLoading(reset))
const context = yield select(selectors.kvStore.bch.getContext)
const data = yield call(api.fetchBchData, context, { n: TX_PER_PAGE, onlyShow: address, offset })
Expand Down
Expand Up @@ -34,6 +34,7 @@ export default ({ api }) => {
const lastPage = last(pages)
if (!reset && lastPage && lastPage.map(length).getOrElse(0) === 0) { return }
const offset = reset ? 0 : length(pages) * TX_PER_PAGE
yield put(A.fetchDataLoading(reset))
yield put(A.fetchTransactionsLoading(reset))
const context = yield select(selectors.wallet.getWalletContext)
const data = yield call(api.fetchBlockchainData, context, { n: TX_PER_PAGE, onlyShow: address, offset })
Expand Down
Expand Up @@ -45,6 +45,7 @@ export default ({ api }) => {
const address = defaultAccountR.getOrFail('Could not get ethereum context.')
const pages = reset ? [] : yield select(S.getTransactions)
const nextPage = length(pages)
yield put(A.fetchDataLoading())
yield put(A.fetchTransactionsLoading(reset))
const data = yield call(api.getEthereumTransactions, address, nextPage)
const latestBlock = yield call(api.getEthereumLatestBlock)
Expand Down

0 comments on commit f9dc9d6

Please sign in to comment.