remove loadActiveTokens action from safe container

This commit is contained in:
mmv 2019-04-19 16:14:24 +04:00
parent 511a251ad2
commit cd5ae70da4
2 changed files with 1 additions and 6 deletions

View File

@ -1,16 +1,13 @@
// @flow
import fetchSafe from '~/routes/safe/store/actions/fetchSafe'
import loadActiveTokens from '~/logic/tokens/store/actions/loadActiveTokens'
import fetchTokenBalances from '~/routes/safe/store/actions/fetchTokenBalances'
export type Actions = {
fetchSafe: typeof fetchSafe,
loadActiveTokens: typeof loadActiveTokens,
fetchTokenBalances: typeof fetchTokenBalances,
}
export default {
fetchSafe,
loadActiveTokens,
fetchTokenBalances,
}

View File

@ -16,15 +16,13 @@ const TIMEOUT = process.env.NODE_ENV === 'test' ? 1500 : 15000
class SafeView extends React.Component<Props> {
componentDidMount() {
const {
fetchSafe, loadActiveTokens, activeTokens, safeUrl, fetchTokenBalances,
fetchSafe, activeTokens, safeUrl, fetchTokenBalances,
} = this.props
fetchSafe(safeUrl)
// loadActiveTokens(safeUrl)
fetchTokenBalances(safeUrl, activeTokens)
this.intervalId = setInterval(() => {
// update in another function so it uses up-to-date props values
this.checkForUpdates()
}, TIMEOUT)
}