Skip to content

Commit

Permalink
build: mv permit simulation files
Browse files Browse the repository at this point in the history
  • Loading branch information
digiwand committed Jan 11, 2025
1 parent fce5367 commit f0cc923
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 41 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { selectUseTransactionSimulations } from '../../../../../../../selectors/
import useApprovalRequest from '../../../../hooks/useApprovalRequest';
import { isRecognizedPermit } from '../../../../utils/signature';
import InfoRowOrigin from '../Shared/InfoRowOrigin';
import PermitSimulation from '../TypedSign/PermitSimulation/PermitSimulation';
import PermitSimulation from '../../Simulation/PermitSimulation';

Check failure on line 7 in app/components/Views/confirmations/components/Confirm/Info/TypedSignV3V4/TypedSignV3V4.tsx

View workflow job for this annotation

GitHub Actions / scripts (lint:tsc)

Cannot find module '../../Simulation/PermitSimulation' or its corresponding type declarations.
import Message from './Message';

const TypedSignV3V4 = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import React from 'react';

import renderWithProvider from '../../../../../../../../util/test/renderWithProvider';
import { typedSignV4ConfirmationState } from '../../../../../../../../util/test/confirm-data-helpers';
import PermitSimulation from './PermitSimulation';
import renderWithProvider from '../../../../../../../util/test/renderWithProvider';
import { typedSignV4ConfirmationState } from '../../../../../../../util/test/confirm-data-helpers';
import PermitSimulation from './Permit';

describe('PermitSimulation', () => {
it('should render correctly for personal sign', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import React from 'react';
import { useSelector } from 'react-redux';
import { StyleSheet, View } from 'react-native';

import { strings } from '../../../../../../../../../locales/i18n';
import { useStyles } from '../../../../../../../../component-library/hooks';
import { selectChainId } from '../../../../../../../../selectors/networkController';
import { safeToChecksumAddress } from '../../../../../../../../util/address';
import { PrimaryType } from '../../../../../constants/signatures';
import useApprovalRequest from '../../../../../hooks/useApprovalRequest';
import { parseTypedDataMessage } from '../../../../../utils/signature';
import InfoRow from '../../../../UI/InfoRow';
import InfoSection from '../../../../UI/InfoRow/InfoSection';
import { strings } from '../../../../../../../../locales/i18n';
import { useStyles } from '../../../../../../../component-library/hooks';
import { selectChainId } from '../../../../../../../selectors/networkController';
import { safeToChecksumAddress } from '../../../../../../../util/address';
import { PrimaryType } from '../../../../constants/signatures';
import useApprovalRequest from '../../../../hooks/useApprovalRequest';
import { parseTypedDataMessage } from '../../../../utils/signature';
import InfoRow from '../../../UI/InfoRow';
import InfoSection from '../../../UI/InfoRow/InfoSection';
import PermitSimulationValueDisplay from './ValueDisplay';

const styleSheet = () =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StyleSheet } from 'react-native';
import { Theme } from '@metamask/design-tokens';
import { fontStyles, colors as importedColors } from '../../../../../../../../../styles/common';
import { fontStyles, colors as importedColors } from '../../../../../../../../styles/common';

const styleSheet = (colors: Theme['colors']) =>
StyleSheet.create({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import React from 'react';
import { act } from '@testing-library/react-native';
import PermitSimulationValueDisplay from './ValueDisplay';

import { memoizedGetTokenStandardAndDetails } from '../../../../../../utils/token';
import useGetTokenStandardAndDetails from '../../../../../../hooks/useGetTokenStandardAndDetails';
import { TokenStandard } from '../../../../../../../../UI/SimulationDetails/types';
import { getTokenDetails } from '../../../../../../../../../util/address';
import { backgroundState } from '../../../../../../../../../util/test/initial-root-state';
import renderWithProvider from '../../../../../../../../../util/test/renderWithProvider';
import { useMetrics } from '../../../../../../../../../components/hooks/useMetrics';
import { MetricsEventBuilder } from '../../../../../../../../../core/Analytics/MetricsEventBuilder';
import { memoizedGetTokenStandardAndDetails } from '../../../../../utils/token';
import useGetTokenStandardAndDetails from '../../../../../hooks/useGetTokenStandardAndDetails';
import { TokenStandard } from '../../../../../../../UI/SimulationDetails/types';
import { getTokenDetails } from '../../../../../../../../util/address';
import { backgroundState } from '../../../../../../../../util/test/initial-root-state';
import renderWithProvider from '../../../../../../../../util/test/renderWithProvider';
import { useMetrics } from '../../../../../../../hooks/useMetrics';
import { MetricsEventBuilder } from '../../../../../../../../core/Analytics/MetricsEventBuilder';

const mockInitialState = {
engine: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ import { TouchableOpacity, View } from 'react-native';
import { useSelector } from 'react-redux';
import { Hex } from '@metamask/utils';

import ButtonPill from '../../../../../../../../../component-library/components-temp/Buttons/ButtonPill/ButtonPill';
import { ButtonIconSizes } from '../../../../../../../../../component-library/components/Buttons/ButtonIcon/ButtonIcon.types';
import ButtonIcon from '../../../../../../../../../component-library/components/Buttons/ButtonIcon/ButtonIcon';
import { IconName , IconColor } from '../../../../../../../../../component-library/components/Icons/Icon';
import Text from '../../../../../../../../../component-library/components/Texts/Text';
import ButtonPill from '../../../../../../../../component-library/components-temp/Buttons/ButtonPill/ButtonPill';
import { ButtonIconSizes } from '../../../../../../../../component-library/components/Buttons/ButtonIcon/ButtonIcon.types';
import ButtonIcon from '../../../../../../../../component-library/components/Buttons/ButtonIcon/ButtonIcon';
import { IconName , IconColor } from '../../../../../../../../component-library/components/Icons/Icon';
import Text from '../../../../../../../../component-library/components/Texts/Text';

import { IndividualFiatDisplay } from '../../../../../../../../UI/SimulationDetails/FiatDisplay/FiatDisplay';
import { IndividualFiatDisplay } from '../../../../../../../UI/SimulationDetails/FiatDisplay/FiatDisplay';
import {
formatAmount,
formatAmountMaxPrecision,
} from '../../../../../../../../UI/SimulationDetails/formatAmount';
} from '../../../../../../../UI/SimulationDetails/formatAmount';

import Box from '../../../../../../../../UI/Ramp/components/Box';
import Address from '../../../../../UI/InfoRow/InfoValue/Address/Address';
import Box from '../../../../../../../UI/Ramp/components/Box';
import Address from '../../../../UI/InfoRow/InfoValue/Address/Address';

import { selectContractExchangeRates } from '../../../../../../../../../selectors/tokenRatesController';
import { selectContractExchangeRates } from '../../../../../../../../selectors/tokenRatesController';

import Logger from '../../../../../../../../../util/Logger';
import { shortenString } from '../../../../../../../../../util/notifications/methods/common';
import { useTheme } from '../../../../../../../../../util/theme';
import { calcTokenAmount } from '../../../../../../../../../util/transactions';
import Logger from '../../../../../../../../util/Logger';
import { shortenString } from '../../../../../../../../util/notifications/methods/common';
import { useTheme } from '../../../../../../../../util/theme';
import { calcTokenAmount } from '../../../../../../../../util/transactions';

import useGetTokenStandardAndDetails from '../../../../../../hooks/useGetTokenStandardAndDetails';
import useTrackERC20WithoutDecimalInformation from '../../../../../../hooks/useTrackERC20WithoutDecimalInformation';
import { TokenDetailsERC20 } from '../../../../../../utils/token';
import BottomModal from '../../../../../UI/BottomModal';
import useGetTokenStandardAndDetails from '../../../../../hooks/useGetTokenStandardAndDetails';
import useTrackERC20WithoutDecimalInformation from '../../../../../hooks/useTrackERC20WithoutDecimalInformation';
import { TokenDetailsERC20 } from '../../../../../utils/token';
import BottomModal from '../../../../UI/BottomModal';

import styleSheet from './ValueDisplay.styles';

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Permit';

0 comments on commit f0cc923

Please sign in to comment.