Skip to content

Commit

Permalink
updated collectibles with nfts
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Jan 16, 2023
1 parent 8f4cd30 commit 6d0543a
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 61 deletions.
6 changes: 3 additions & 3 deletions app/_locales/de/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/el/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/es/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/fr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/hi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/id/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/ja/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/ko/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/pt/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/ru/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/tl/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/tr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/vi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/zh_CN/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ui/helpers/constants/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ export const SETTINGS_CONSTANTS = [
},
{
tabMessage: (t) => t('securityAndPrivacy'),
sectionMessage: (t) => t('useCollectibleDetection'),
descriptionMessage: (t) => t('useCollectibleDetectionDescription'),
sectionMessage: (t) => t('useNftDetection'),
descriptionMessage: (t) => t('useNftDetectionDescription'),
route: `${SECURITY_ROUTE}#autodetect-nfts`,
icon: 'fa fa-flask',
featureFlag: 'NFTS_V1',
Expand Down
6 changes: 3 additions & 3 deletions ui/hooks/useAssetDetails.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isEqual } from 'lodash';
import { useState, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { getCollectibles, getTokens } from '../ducks/metamask/metamask';
import { getNfts, getTokens } from '../ducks/metamask/metamask';
import { getAssetDetails } from '../helpers/utils/token-util';
import { hideLoadingIndication, showLoadingIndication } from '../store/actions';
import { isEqualCaseInsensitive } from '../../shared/modules/string-utils';
Expand All @@ -11,7 +11,7 @@ import { useTokenTracker } from './useTokenTracker';
export function useAssetDetails(tokenAddress, userAddress, transactionData) {
const dispatch = useDispatch();
// state selectors
const collectibles = useSelector(getCollectibles);
const nfts = useSelector(getNfts);
const tokens = useSelector(getTokens, isEqual);
const currentToken = tokens.find((token) =>
isEqualCaseInsensitive(token.address, tokenAddress),
Expand Down Expand Up @@ -57,7 +57,7 @@ export function useAssetDetails(tokenAddress, userAddress, transactionData) {
tokenAddress,
userAddress,
transactionData,
collectibles,
nfts,
tokensWithBalances,
prevTokenBalance,
]);
Expand Down
Loading

0 comments on commit 6d0543a

Please sign in to comment.