Skip to content

Commit

Permalink
Move selectors to helpers directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchung committed Jan 18, 2021
1 parent e16bd67 commit 4c3f592
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/hooks/useAccountAssets.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSelector } from 'react-redux';
import { sortAssetsByNativeAmountSelector } from '../hoc/assetSelectors';
import { sortAssetsByNativeAmountSelector } from '@rainbow-me/helpers/assetSelectors';

export default function useAccountAssets() {
const assets = useSelector(sortAssetsByNativeAmountSelector);
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useUniswapAssetsInWallet.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { filter, keys } from 'lodash';
import { useSelector } from 'react-redux';
import { createSelector } from 'reselect';
import NetworkTypes from '../helpers/networkTypes';
import { sortAssetsByNativeAmountSelector } from '../hoc/assetSelectors';
import { sortAssetsByNativeAmountSelector } from '@rainbow-me/helpers/assetSelectors';
import NetworkTypes from '@rainbow-me/networkTypes';

const uniswapPairsSelector = state => state.uniswap.pairs;
const uniswapAllTokensSelector = state => state.uniswap.allTokens;
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useWalletSectionsData.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { useMemo } from 'react';
import { useSelector } from 'react-redux';
import { buildWalletSectionsSelector } from '../helpers/buildWalletSections';
import { readableUniswapSelector } from '../hoc/uniswapLiquidityTokenInfoSelector';
import useAccountAssets from './useAccountAssets';
import useAccountSettings from './useAccountSettings';
import useCoinListEditOptions from './useCoinListEditOptions';
import useIsWalletEthZero from './useIsWalletEthZero';
import useSavingsAccount from './useSavingsAccount';
import useSendableUniqueTokens from './useSendableUniqueTokens';
import useShowcaseTokens from './useShowcaseTokens';
import { buildWalletSectionsSelector } from '@rainbow-me/helpers/buildWalletSections';
import { readableUniswapSelector } from '@rainbow-me/helpers/uniswapLiquidityTokenInfoSelector';

export default function useWalletSectionsData() {
const accountData = useAccountAssets();
Expand Down

0 comments on commit 4c3f592

Please sign in to comment.