mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Renamed metametrics.new.js to metametrics.js (#14327)
This commit is contained in:
parent
cb963f3c29
commit
8cb1f4af2e
@ -1,16 +1,16 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {
|
import {
|
||||||
MetaMetricsProvider as NewMetaMetricsProvider,
|
MetaMetricsProvider,
|
||||||
LegacyMetaMetricsProvider as NewLegacyMetaMetricsProvider,
|
LegacyMetaMetricsProvider
|
||||||
} from '../ui/contexts/metametrics.new';
|
} from '../ui/contexts/metametrics';
|
||||||
|
|
||||||
const MetaMetricsProviderStorybook = (props) =>
|
const MetaMetricsProviderStorybook = (props) =>
|
||||||
(
|
(
|
||||||
<NewMetaMetricsProvider>
|
<MetaMetricsProvider>
|
||||||
<NewLegacyMetaMetricsProvider>
|
<LegacyMetaMetricsProvider>
|
||||||
{props.children}
|
{props.children}
|
||||||
</NewLegacyMetaMetricsProvider>
|
</LegacyMetaMetricsProvider>
|
||||||
</NewMetaMetricsProvider>
|
</MetaMetricsProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default MetaMetricsProviderStorybook
|
export default MetaMetricsProviderStorybook
|
@ -14,7 +14,7 @@ import { SEND_ROUTE } from '../../../helpers/constants/routes';
|
|||||||
import { SEVERITIES } from '../../../helpers/constants/design-system';
|
import { SEVERITIES } from '../../../helpers/constants/design-system';
|
||||||
import { INVALID_ASSET_TYPE } from '../../../helpers/constants/error-keys';
|
import { INVALID_ASSET_TYPE } from '../../../helpers/constants/error-keys';
|
||||||
import { ASSET_TYPES } from '../../../../shared/constants/transaction';
|
import { ASSET_TYPES } from '../../../../shared/constants/transaction';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
const AssetListItem = ({
|
const AssetListItem = ({
|
||||||
className,
|
className,
|
||||||
|
@ -25,7 +25,7 @@ import {
|
|||||||
JUSTIFY_CONTENT,
|
JUSTIFY_CONTENT,
|
||||||
} from '../../../helpers/constants/design-system';
|
} from '../../../helpers/constants/design-system';
|
||||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
const AssetList = ({ onClickAsset }) => {
|
const AssetList = ({ onClickAsset }) => {
|
||||||
const t = useI18nContext();
|
const t = useI18nContext();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { useCallback, useContext, useState } from 'react';
|
import React, { useCallback, useContext, useState } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import TextField from '../../ui/text-field';
|
import TextField from '../../ui/text-field';
|
||||||
import Button from '../../ui/button';
|
import Button from '../../ui/button';
|
||||||
import CheckBox from '../../ui/check-box';
|
import CheckBox from '../../ui/check-box';
|
||||||
|
@ -35,7 +35,7 @@ import ActionableMessage from '../../ui/actionable-message/actionable-message';
|
|||||||
|
|
||||||
import { I18nContext } from '../../../contexts/i18n';
|
import { I18nContext } from '../../../contexts/i18n';
|
||||||
import GasTiming from '../gas-timing';
|
import GasTiming from '../gas-timing';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function EditGasDisplay({
|
export default function EditGasDisplay({
|
||||||
mode = EDIT_GAS_MODES.MODIFY_IN_PLACE,
|
mode = EDIT_GAS_MODES.MODIFY_IN_PLACE,
|
||||||
|
@ -7,7 +7,7 @@ import Button from '../../ui/button';
|
|||||||
import Box from '../../ui/box/box';
|
import Box from '../../ui/box/box';
|
||||||
import { TEXT_ALIGN } from '../../../helpers/constants/design-system';
|
import { TEXT_ALIGN } from '../../../helpers/constants/design-system';
|
||||||
import { detectNewTokens } from '../../../store/actions';
|
import { detectNewTokens } from '../../../store/actions';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function ImportTokenLink({ isMainnet }) {
|
export default function ImportTokenLink({ isMainnet }) {
|
||||||
const trackEvent = useContext(MetaMetricsContext);
|
const trackEvent = useContext(MetaMetricsContext);
|
||||||
|
@ -17,7 +17,7 @@ import {
|
|||||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||||
import { getEnvironmentType } from '../../../../app/scripts/lib/util';
|
import { getEnvironmentType } from '../../../../app/scripts/lib/util';
|
||||||
import { ENVIRONMENT_TYPE_FULLSCREEN } from '../../../../shared/constants/app';
|
import { ENVIRONMENT_TYPE_FULLSCREEN } from '../../../../shared/constants/app';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function AccountOptionsMenu({ anchorElement, onClose }) {
|
export default function AccountOptionsMenu({ anchorElement, onClose }) {
|
||||||
const t = useI18nContext();
|
const t = useI18nContext();
|
||||||
|
@ -9,7 +9,7 @@ import { ENVIRONMENT_TYPE_POPUP } from '../../../../shared/constants/app';
|
|||||||
import { CONNECTED_ACCOUNTS_ROUTE } from '../../../helpers/constants/routes';
|
import { CONNECTED_ACCOUNTS_ROUTE } from '../../../helpers/constants/routes';
|
||||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||||
import { getOriginOfCurrentTab } from '../../../selectors';
|
import { getOriginOfCurrentTab } from '../../../selectors';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import AccountOptionsMenu from './account-options-menu';
|
import AccountOptionsMenu from './account-options-menu';
|
||||||
|
|
||||||
export default function MenuBar() {
|
export default function MenuBar() {
|
||||||
|
@ -37,7 +37,7 @@ import CancelButton from '../cancel-button';
|
|||||||
import CancelSpeedupPopover from '../cancel-speedup-popover';
|
import CancelSpeedupPopover from '../cancel-speedup-popover';
|
||||||
import EditGasFeePopover from '../edit-gas-fee-popover';
|
import EditGasFeePopover from '../edit-gas-fee-popover';
|
||||||
import EditGasPopover from '../edit-gas-popover';
|
import EditGasPopover from '../edit-gas-popover';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
function TransactionListItemInner({
|
function TransactionListItemInner({
|
||||||
transactionGroup,
|
transactionGroup,
|
||||||
|
@ -30,7 +30,7 @@ import SendIcon from '../../ui/icon/overview-send-icon.component';
|
|||||||
import { setSwapsFromToken } from '../../../ducks/swaps/swaps';
|
import { setSwapsFromToken } from '../../../ducks/swaps/swaps';
|
||||||
import IconButton from '../../ui/icon-button';
|
import IconButton from '../../ui/icon-button';
|
||||||
import { isHardwareKeyring } from '../../../helpers/utils/hardware';
|
import { isHardwareKeyring } from '../../../helpers/utils/hardware';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import WalletOverview from './wallet-overview';
|
import WalletOverview from './wallet-overview';
|
||||||
|
|
||||||
const EthOverview = ({ className }) => {
|
const EthOverview = ({ className }) => {
|
||||||
|
@ -27,7 +27,7 @@ import SendIcon from '../../ui/icon/overview-send-icon.component';
|
|||||||
import IconButton from '../../ui/icon-button';
|
import IconButton from '../../ui/icon-button';
|
||||||
import { INVALID_ASSET_TYPE } from '../../../helpers/constants/error-keys';
|
import { INVALID_ASSET_TYPE } from '../../../helpers/constants/error-keys';
|
||||||
import { showModal } from '../../../store/actions';
|
import { showModal } from '../../../store/actions';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import { ASSET_TYPES } from '../../../../shared/constants/transaction';
|
import { ASSET_TYPES } from '../../../../shared/constants/transaction';
|
||||||
import WalletOverview from './wallet-overview';
|
import WalletOverview from './wallet-overview';
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import {
|
|||||||
import { showModal } from '../../../store/actions';
|
import { showModal } from '../../../store/actions';
|
||||||
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes';
|
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes';
|
||||||
import { getURLHostName } from '../../../helpers/utils/util';
|
import { getURLHostName } from '../../../helpers/utils/util';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import AssetNavigation from './asset-navigation';
|
import AssetNavigation from './asset-navigation';
|
||||||
import AssetOptions from './asset-options';
|
import AssetOptions from './asset-options';
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import {
|
|||||||
} from '../../../helpers/constants/routes';
|
} from '../../../helpers/constants/routes';
|
||||||
import { getURLHostName } from '../../../helpers/utils/util';
|
import { getURLHostName } from '../../../helpers/utils/util';
|
||||||
import { showModal } from '../../../store/actions';
|
import { showModal } from '../../../store/actions';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import AssetNavigation from './asset-navigation';
|
import AssetNavigation from './asset-navigation';
|
||||||
import AssetOptions from './asset-options';
|
import AssetOptions from './asset-options';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import Button from '../../components/ui/button';
|
|||||||
import Identicon from '../../components/ui/identicon';
|
import Identicon from '../../components/ui/identicon';
|
||||||
import TokenBalance from '../../components/ui/token-balance';
|
import TokenBalance from '../../components/ui/token-balance';
|
||||||
import { I18nContext } from '../../contexts/i18n';
|
import { I18nContext } from '../../contexts/i18n';
|
||||||
import { MetaMetricsContext as NewMetaMetricsContext } from '../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../contexts/metametrics';
|
||||||
import { getMostRecentOverviewPage } from '../../ducks/history/history';
|
import { getMostRecentOverviewPage } from '../../ducks/history/history';
|
||||||
import { getTokens } from '../../ducks/metamask/metamask';
|
import { getTokens } from '../../ducks/metamask/metamask';
|
||||||
import ZENDESK_URLS from '../../helpers/constants/zendesk-url';
|
import ZENDESK_URLS from '../../helpers/constants/zendesk-url';
|
||||||
@ -67,7 +67,7 @@ const ConfirmAddSuggestedToken = () => {
|
|||||||
const suggestedAssets = useSelector(getSuggestedAssets);
|
const suggestedAssets = useSelector(getSuggestedAssets);
|
||||||
const tokens = useSelector(getTokens);
|
const tokens = useSelector(getTokens);
|
||||||
|
|
||||||
const trackEvent = useContext(NewMetaMetricsContext);
|
const trackEvent = useContext(MetaMetricsContext);
|
||||||
|
|
||||||
const knownTokenActionableMessage = useMemo(() => {
|
const knownTokenActionableMessage = useMemo(() => {
|
||||||
return (
|
return (
|
||||||
|
@ -9,7 +9,7 @@ import Button from '../../components/ui/button';
|
|||||||
import Identicon from '../../components/ui/identicon';
|
import Identicon from '../../components/ui/identicon';
|
||||||
import TokenBalance from '../../components/ui/token-balance';
|
import TokenBalance from '../../components/ui/token-balance';
|
||||||
import { I18nContext } from '../../contexts/i18n';
|
import { I18nContext } from '../../contexts/i18n';
|
||||||
import { MetaMetricsContext as NewMetaMetricsContext } from '../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../contexts/metametrics';
|
||||||
import { getMostRecentOverviewPage } from '../../ducks/history/history';
|
import { getMostRecentOverviewPage } from '../../ducks/history/history';
|
||||||
import { getPendingTokens } from '../../ducks/metamask/metamask';
|
import { getPendingTokens } from '../../ducks/metamask/metamask';
|
||||||
import { addTokens, clearPendingTokens } from '../../store/actions';
|
import { addTokens, clearPendingTokens } from '../../store/actions';
|
||||||
@ -24,7 +24,7 @@ const ConfirmImportToken = () => {
|
|||||||
const t = useContext(I18nContext);
|
const t = useContext(I18nContext);
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const trackEvent = useContext(NewMetaMetricsContext);
|
const trackEvent = useContext(MetaMetricsContext);
|
||||||
|
|
||||||
const mostRecentOverviewPage = useSelector(getMostRecentOverviewPage);
|
const mostRecentOverviewPage = useSelector(getMostRecentOverviewPage);
|
||||||
const pendingTokens = useSelector(getPendingTokens);
|
const pendingTokens = useSelector(getPendingTokens);
|
||||||
|
@ -5,9 +5,9 @@ import { HashRouter } from 'react-router-dom';
|
|||||||
import * as Sentry from '@sentry/browser';
|
import * as Sentry from '@sentry/browser';
|
||||||
import { I18nProvider, LegacyI18nProvider } from '../contexts/i18n';
|
import { I18nProvider, LegacyI18nProvider } from '../contexts/i18n';
|
||||||
import {
|
import {
|
||||||
MetaMetricsProvider as NewMetaMetricsProvider,
|
MetaMetricsProvider,
|
||||||
LegacyMetaMetricsProvider as NewLegacyMetaMetricsProvider,
|
LegacyMetaMetricsProvider,
|
||||||
} from '../contexts/metametrics.new';
|
} from '../contexts/metametrics';
|
||||||
import ErrorPage from './error';
|
import ErrorPage from './error';
|
||||||
import Routes from './routes';
|
import Routes from './routes';
|
||||||
|
|
||||||
@ -41,15 +41,15 @@ class Index extends PureComponent {
|
|||||||
return (
|
return (
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<HashRouter hashType="noslash">
|
<HashRouter hashType="noslash">
|
||||||
<NewMetaMetricsProvider>
|
<MetaMetricsProvider>
|
||||||
<NewLegacyMetaMetricsProvider>
|
<LegacyMetaMetricsProvider>
|
||||||
<I18nProvider>
|
<I18nProvider>
|
||||||
<LegacyI18nProvider>
|
<LegacyI18nProvider>
|
||||||
<Routes />
|
<Routes />
|
||||||
</LegacyI18nProvider>
|
</LegacyI18nProvider>
|
||||||
</I18nProvider>
|
</I18nProvider>
|
||||||
</NewLegacyMetaMetricsProvider>
|
</LegacyMetaMetricsProvider>
|
||||||
</NewMetaMetricsProvider>
|
</MetaMetricsProvider>
|
||||||
</HashRouter>
|
</HashRouter>
|
||||||
</Provider>
|
</Provider>
|
||||||
);
|
);
|
||||||
|
@ -29,7 +29,7 @@ import {
|
|||||||
import ZENDESK_URLS from '../../../helpers/constants/zendesk-url';
|
import ZENDESK_URLS from '../../../helpers/constants/zendesk-url';
|
||||||
import { getFirstTimeFlowType } from '../../../selectors';
|
import { getFirstTimeFlowType } from '../../../selectors';
|
||||||
import { FIRST_TIME_FLOW_TYPES } from '../../../helpers/constants/onboarding';
|
import { FIRST_TIME_FLOW_TYPES } from '../../../helpers/constants/onboarding';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function CreatePassword({
|
export default function CreatePassword({
|
||||||
createNewAccount,
|
createNewAccount,
|
||||||
|
@ -16,7 +16,7 @@ import {
|
|||||||
} from '../../../helpers/constants/routes';
|
} from '../../../helpers/constants/routes';
|
||||||
import { setCompletedOnboarding } from '../../../store/actions';
|
import { setCompletedOnboarding } from '../../../store/actions';
|
||||||
import { getFirstTimeFlowType } from '../../../selectors';
|
import { getFirstTimeFlowType } from '../../../selectors';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function CreationSuccessful() {
|
export default function CreationSuccessful() {
|
||||||
const firstTimeFlowTypeNameMap = {
|
const firstTimeFlowTypeNameMap = {
|
||||||
|
@ -17,7 +17,7 @@ import {
|
|||||||
getParticipateInMetaMetrics,
|
getParticipateInMetaMetrics,
|
||||||
} from '../../../selectors';
|
} from '../../../selectors';
|
||||||
|
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
const firstTimeFlowTypeNameMap = {
|
const firstTimeFlowTypeNameMap = {
|
||||||
create: 'Selected Create New Wallet',
|
create: 'Selected Create New Wallet',
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
toggleSendMaxMode,
|
toggleSendMaxMode,
|
||||||
} from '../../../../../ducks/send';
|
} from '../../../../../ducks/send';
|
||||||
import { useI18nContext } from '../../../../../hooks/useI18nContext';
|
import { useI18nContext } from '../../../../../hooks/useI18nContext';
|
||||||
import { MetaMetricsContext } from '../../../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function AmountMaxButton() {
|
export default function AmountMaxButton() {
|
||||||
const isDraftTransactionInvalid = useSelector(isSendFormInvalid);
|
const isDraftTransactionInvalid = useSelector(isSendFormInvalid);
|
||||||
|
@ -16,7 +16,7 @@ import {
|
|||||||
import { getCurrentChainId, isCustomPriceExcessive } from '../../selectors';
|
import { getCurrentChainId, isCustomPriceExcessive } from '../../selectors';
|
||||||
import { getSendHexDataFeatureFlagState } from '../../ducks/metamask/metamask';
|
import { getSendHexDataFeatureFlagState } from '../../ducks/metamask/metamask';
|
||||||
import { showQrScanner } from '../../store/actions';
|
import { showQrScanner } from '../../store/actions';
|
||||||
import { MetaMetricsContext } from '../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../contexts/metametrics';
|
||||||
import SendHeader from './send-header';
|
import SendHeader from './send-header';
|
||||||
import AddRecipient from './send-content/add-recipient';
|
import AddRecipient from './send-content/add-recipient';
|
||||||
import SendContent from './send-content';
|
import SendContent from './send-content';
|
||||||
|
@ -32,7 +32,7 @@ import {
|
|||||||
DISPLAY,
|
DISPLAY,
|
||||||
} from '../../../helpers/constants/design-system';
|
} from '../../../helpers/constants/design-system';
|
||||||
import SwapsFooter from '../swaps-footer';
|
import SwapsFooter from '../swaps-footer';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import SwapStepIcon from './swap-step-icon';
|
import SwapStepIcon from './swap-step-icon';
|
||||||
|
|
||||||
export default function AwaitingSignatures() {
|
export default function AwaitingSignatures() {
|
||||||
|
@ -7,7 +7,7 @@ import isEqual from 'lodash/isEqual';
|
|||||||
import { getBlockExplorerLink } from '@metamask/etherscan-link';
|
import { getBlockExplorerLink } from '@metamask/etherscan-link';
|
||||||
import { I18nContext } from '../../../contexts/i18n';
|
import { I18nContext } from '../../../contexts/i18n';
|
||||||
import { SUPPORT_LINK } from '../../../helpers/constants/common';
|
import { SUPPORT_LINK } from '../../../helpers/constants/common';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getCurrentChainId,
|
getCurrentChainId,
|
||||||
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import { I18nContext } from '../../../../contexts/i18n';
|
import { I18nContext } from '../../../../contexts/i18n';
|
||||||
import { getURLHostName } from '../../../../helpers/utils/util';
|
import { getURLHostName } from '../../../../helpers/utils/util';
|
||||||
import { MetaMetricsContext } from '../../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function ViewOnEtherScanLink({
|
export default function ViewOnEtherScanLink({
|
||||||
txHash,
|
txHash,
|
||||||
|
@ -6,7 +6,7 @@ import classnames from 'classnames';
|
|||||||
import { uniqBy, isEqual } from 'lodash';
|
import { uniqBy, isEqual } from 'lodash';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import { getTokenTrackerLink } from '@metamask/etherscan-link';
|
import { getTokenTrackerLink } from '@metamask/etherscan-link';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import {
|
import {
|
||||||
useTokensToSearch,
|
useTokensToSearch,
|
||||||
getRenderableTokenData,
|
getRenderableTokenData,
|
||||||
|
@ -28,7 +28,7 @@ import {
|
|||||||
getSmartTransactionsEnabled,
|
getSmartTransactionsEnabled,
|
||||||
getCurrentSmartTransactionsEnabled,
|
getCurrentSmartTransactionsEnabled,
|
||||||
} from '../../../ducks/swaps/swaps';
|
} from '../../../ducks/swaps/swaps';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function DropdownSearchList({
|
export default function DropdownSearchList({
|
||||||
searchListClassName,
|
searchListClassName,
|
||||||
|
@ -19,7 +19,7 @@ import {
|
|||||||
FONT_WEIGHT,
|
FONT_WEIGHT,
|
||||||
} from '../../../helpers/constants/design-system';
|
} from '../../../helpers/constants/design-system';
|
||||||
import GasDetailsItemTitle from '../../../components/app/gas-details-item/gas-details-item-title';
|
import GasDetailsItemTitle from '../../../components/app/gas-details-item/gas-details-item-title';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
|
|
||||||
const GAS_FEES_LEARN_MORE_URL =
|
const GAS_FEES_LEARN_MORE_URL =
|
||||||
'https://community.metamask.io/t/what-is-gas-why-do-transactions-take-so-long/3172';
|
'https://community.metamask.io/t/what-is-gas-why-do-transactions-take-so-long/3172';
|
||||||
|
@ -85,7 +85,7 @@ import { useGasFeeEstimates } from '../../hooks/useGasFeeEstimates';
|
|||||||
import FeatureToggledRoute from '../../helpers/higher-order-components/feature-toggled-route';
|
import FeatureToggledRoute from '../../helpers/higher-order-components/feature-toggled-route';
|
||||||
import { TRANSACTION_STATUSES } from '../../../shared/constants/transaction';
|
import { TRANSACTION_STATUSES } from '../../../shared/constants/transaction';
|
||||||
import ActionableMessage from '../../components/ui/actionable-message';
|
import ActionableMessage from '../../components/ui/actionable-message';
|
||||||
import { MetaMetricsContext } from '../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../contexts/metametrics';
|
||||||
import {
|
import {
|
||||||
fetchTokens,
|
fetchTokens,
|
||||||
fetchTopAssets,
|
fetchTopAssets,
|
||||||
|
@ -18,7 +18,7 @@ import {
|
|||||||
getHardwareWalletType,
|
getHardwareWalletType,
|
||||||
} from '../../../selectors/selectors';
|
} from '../../../selectors/selectors';
|
||||||
import { I18nContext } from '../../../contexts/i18n';
|
import { I18nContext } from '../../../contexts/i18n';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import Mascot from '../../../components/ui/mascot';
|
import Mascot from '../../../components/ui/mascot';
|
||||||
import SwapsFooter from '../swaps-footer';
|
import SwapsFooter from '../swaps-footer';
|
||||||
import BackgroundAnimation from './background-animation';
|
import BackgroundAnimation from './background-animation';
|
||||||
|
@ -13,7 +13,7 @@ import {
|
|||||||
} from '../../../../selectors';
|
} from '../../../../selectors';
|
||||||
import { SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP } from '../../../../../shared/constants/swaps';
|
import { SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP } from '../../../../../shared/constants/swaps';
|
||||||
import { getURLHostName } from '../../../../helpers/utils/util';
|
import { getURLHostName } from '../../../../helpers/utils/util';
|
||||||
import { MetaMetricsContext } from '../../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../../contexts/metametrics';
|
||||||
|
|
||||||
export default function ItemList({
|
export default function ItemList({
|
||||||
results = [],
|
results = [],
|
||||||
|
@ -44,7 +44,7 @@ import { SMART_TRANSACTION_STATUSES } from '../../../../shared/constants/transac
|
|||||||
import SwapsFooter from '../swaps-footer';
|
import SwapsFooter from '../swaps-footer';
|
||||||
import { calcTokenAmount } from '../../../helpers/utils/token-util';
|
import { calcTokenAmount } from '../../../helpers/utils/token-util';
|
||||||
import { showRemainingTimeInMinAndSec } from '../swaps.util';
|
import { showRemainingTimeInMinAndSec } from '../swaps.util';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import SuccessIcon from './success-icon';
|
import SuccessIcon from './success-icon';
|
||||||
import RevertedIcon from './reverted-icon';
|
import RevertedIcon from './reverted-icon';
|
||||||
import CanceledIcon from './canceled-icon';
|
import CanceledIcon from './canceled-icon';
|
||||||
|
@ -17,7 +17,7 @@ import { useEthFiatAmount } from '../../../hooks/useEthFiatAmount';
|
|||||||
import { useEqualityCheck } from '../../../hooks/useEqualityCheck';
|
import { useEqualityCheck } from '../../../hooks/useEqualityCheck';
|
||||||
import { usePrevious } from '../../../hooks/usePrevious';
|
import { usePrevious } from '../../../hooks/usePrevious';
|
||||||
import { useGasFeeInputs } from '../../../hooks/gasFeeInput/useGasFeeInputs';
|
import { useGasFeeInputs } from '../../../hooks/gasFeeInput/useGasFeeInputs';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import FeeCard from '../fee-card';
|
import FeeCard from '../fee-card';
|
||||||
import EditGasPopover from '../../../components/app/edit-gas-popover/edit-gas-popover.component';
|
import EditGasPopover from '../../../components/app/edit-gas-popover/edit-gas-popover.component';
|
||||||
import {
|
import {
|
||||||
|
Loading…
Reference in New Issue
Block a user