Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed Jan 10, 2025
1 parent 7350cd4 commit 741cd13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { useConfirmContext } from '../../../../../../context/confirm';
import { SignatureRequestType } from '../../../../../../types/confirm';
import StaticSimulation from '../../../shared/static-simulation/static-simulation';
import PermitSimulationValueDisplay from '../value-display/value-display';
import Name from '../../../../../../../../components/app/name';
import { NameType } from '@metamask/name-controller';

function extractTokenDetailsByPrimaryType(
message: Record<string, unknown>,
Expand Down
8 changes: 4 additions & 4 deletions ui/pages/confirmations/components/confirm/title/title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
import React, { memo, useMemo } from 'react';

import { TokenStandard } from '../../../../../../shared/constants/transaction';
import { parseTypedDataMessage } from '../../../../../../shared/modules/transaction.utils';
import GeneralAlert from '../../../../../components/app/alert-system/general-alert/general-alert';
import { Box, Text } from '../../../../../components/component-library';
import {
Expand All @@ -16,15 +17,14 @@ import useAlerts from '../../../../../hooks/useAlerts';
import { useI18nContext } from '../../../../../hooks/useI18nContext';
import { TypedSignSignaturePrimaryTypes } from '../../../constants';
import { useConfirmContext } from '../../../context/confirm';
import { useTypedSignSignatureInfo } from '../../../hooks/useTypedSignSignatureInfo';
import { Confirmation, SignatureRequestType } from '../../../types/confirm';
import { isSIWESignatureRequest } from '../../../utils';
import { useTypedSignSignatureInfo } from '../../../hooks/useTypedSignSignatureInfo';
import { useIsNFT } from '../info/approve/hooks/use-is-nft';
import { getIsRevokeSetApprovalForAll } from '../info/utils';
import { useTokenTransactionData } from '../info/hooks/useTokenTransactionData';
import { useCurrentSpendingCap } from './hooks/useCurrentSpendingCap';
import { parseTypedDataMessage } from '../../../../../../shared/modules/transaction.utils';
import { DAI_CONTRACT_ADDRESS } from '../info/typed-sign/typed-sign-v4-simulation/value-display/value-display';
import { getIsRevokeSetApprovalForAll } from '../info/utils';
import { useCurrentSpendingCap } from './hooks/useCurrentSpendingCap';

function ConfirmBannerAlert({ ownerId }: { ownerId: string }) {
const { generalAlerts } = useAlerts(ownerId);
Expand Down

0 comments on commit 741cd13

Please sign in to comment.