diff --git a/source/Background/Keyring/index.js b/source/Background/Keyring/index.js index e58ca822..79ec8537 100644 --- a/source/Background/Keyring/index.js +++ b/source/Background/Keyring/index.js @@ -109,6 +109,7 @@ export const HANDLER_TYPES = { GET_CURRENT_NETWORK: 'get-current-network', IMPORT_PEM_ACCOUNT: 'import-pem-account', REMOVE_PEM_ACCOUNT: 'remove-pem-account', + REMOVE_CUSTOM_TOKEN: 'remove-custom-token', }; export const getKeyringErrorMessage = (type) => ({ diff --git a/source/components/AssetItem/index.jsx b/source/components/AssetItem/index.jsx index 2f8306c9..f8c5faa6 100644 --- a/source/components/AssetItem/index.jsx +++ b/source/components/AssetItem/index.jsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useState } from 'react'; import NumberFormat from 'react-number-format'; import PropTypes from 'prop-types'; import Typography from '@material-ui/core/Typography'; @@ -8,7 +8,6 @@ import clsx from 'clsx'; import Skeleton from 'react-loading-skeleton'; import 'react-loading-skeleton/dist/skeleton.css'; -import { TOKENS } from '@shared/constants/currencies'; import RefreshIcon from '@assets/icons/blue-refresh.png'; import DeleteIcon from '@assets/icons/delete.svg'; import TokenIcon from '../TokenIcon'; @@ -67,7 +66,13 @@ const AssetItem = ({ return (
setOpenDelete(true)} @@ -170,4 +181,5 @@ AssetItem.propTypes = { failed: PropTypes.bool, assetNameTestId: PropTypes.string, removeAsset: PropTypes.func.isRequired, + protectedAsset: PropTypes.bool.isRequired, }; diff --git a/source/components/Profile/index.jsx b/source/components/Profile/index.jsx index a7a742f7..a124e811 100644 --- a/source/components/Profile/index.jsx +++ b/source/components/Profile/index.jsx @@ -1,3 +1,4 @@ +/* eslint-disable max-len */ import React, { useState, useEffect } from 'react'; import MenuList from '@material-ui/core/MenuList'; import Button from '@material-ui/core/Button'; diff --git a/source/redux/wallet.js b/source/redux/wallet.js index d4d3f0ce..5874391a 100644 --- a/source/redux/wallet.js +++ b/source/redux/wallet.js @@ -110,8 +110,6 @@ export const { setTransactionsLoading, setAssets, setAssetsLoading, - setCollections, - setCollectionsLoading, blockNFTFetch, } = walletSlice.actions;