-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(algo): add to home balance and menu left
- Loading branch information
Philip London
committed
Jun 26, 2020
1 parent
6967cfc
commit 83e41c1
Showing
6 changed files
with
58 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 1 addition & 17 deletions
18
...allet-v4-frontend/src/layouts/Wallet/MenuLeft/Balances/WalletBalance/Balance/selectors.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
import * as balanceSelectors from 'components/Balances/wallet/selectors' | ||
import { Remote } from 'blockchain-wallet-v4/src' | ||
|
||
export const getData = (state, ownProps) => { | ||
switch (ownProps.coin) { | ||
case 'BTC': | ||
return balanceSelectors.getBtcBalance(state) | ||
case 'BCH': | ||
return balanceSelectors.getBchBalance(state) | ||
case 'ETH': | ||
return balanceSelectors.getEthBalance(state) | ||
case 'XLM': | ||
return balanceSelectors.getXlmBalance(state) | ||
case 'PAX': | ||
return balanceSelectors.getPaxBalance(state) | ||
case 'USDT': | ||
return balanceSelectors.getUsdtBalance(state) | ||
default: | ||
return Remote.Failure('Unsupported Coin Code') | ||
} | ||
return balanceSelectors.getBalanceSelector(ownProps.coin)(state) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters