Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed Nov 20, 2024
1 parent 9d36588 commit 2c1a8b1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 2 additions & 4 deletions ui/pages/bridge/hooks/useHandleApprovalTx.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { TransactionType } from '@metamask/transaction-controller';
import { Hex } from '@metamask/utils';
import { BigNumber } from 'bignumber.js';
import { TxData } from '../types';
import { isEthUsdt } from '../bridge.util';
import { TxData, QuoteResponse, FeeType } from '../types';
import { isEthUsdt, getEthUsdtResetData } from '../bridge.util';
import useHandleTx from './useHandleTx';
import { Numeric } from '../../../../shared/modules/Numeric';
import { QuoteResponse, FeeType } from '../types';
import { ETH_USDT_ADDRESS } from '../../../../shared/constants/bridge';
import { getBridgeERC20Allowance } from '../../../ducks/bridge/actions';
import { getEthUsdtResetData } from '../bridge.util';

export default function useHandleApprovalTx() {
const { handleTx } = useHandleTx();
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/bridge/hooks/useHandleBridgeTx.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BigNumber } from 'bignumber.js';
import { TransactionType } from '@metamask/transaction-controller';
import { Numeric } from '../../../../shared/modules/Numeric';
import { FeeType, QuoteResponse } from '../types';
import useHandleTx from './useHandleTx';
import { TransactionType } from '@metamask/transaction-controller';

export default function useHandleBridgeTx() {
const { handleTx } = useHandleTx();
Expand Down
8 changes: 5 additions & 3 deletions ui/pages/bridge/hooks/useHandleTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import {
TransactionMeta,
TransactionType,
} from '@metamask/transaction-controller';
import { forceUpdateMetamaskState } from '../../../store/actions';
import { useDispatch, useSelector } from 'react-redux';
import {
forceUpdateMetamaskState,
addTransactionAndWaitForPublish,
} from '../../../store/actions';
import {
getHexMaxGasLimit,
getTxGasEstimates,
} from '../../../ducks/bridge/utils';
import { addTransactionAndWaitForPublish } from '../../../store/actions';
import { useDispatch, useSelector } from 'react-redux';
import { getGasFeeEstimates } from '../../../ducks/metamask/metamask';
import { checkNetworkAndAccountSupports1559 } from '../../../selectors';
import { ChainId } from '../types';
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/bridge/hooks/useSubmitBridgeTransaction.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import { renderHook } from '@testing-library/react-hooks';
import { Provider } from 'react-redux';
import { MemoryRouter, useHistory } from 'react-router-dom';
import { createBridgeMockStore } from '../../../../test/jest/mock-store';
import * as actions from '../../../store/actions';
import * as selectors from '../../../selectors';
Expand All @@ -12,7 +13,6 @@ import {
DummyQuotesWithApproval,
} from '../../../../test/data/bridge/dummy-quotes';
import useSubmitBridgeTransaction from './useSubmitBridgeTransaction';
import { MemoryRouter, useHistory } from 'react-router-dom';

jest.mock('react-router-dom', () => {
const original = jest.requireActual('react-router-dom');
Expand Down
1 change: 0 additions & 1 deletion ui/pages/bridge/hooks/useSubmitBridgeTransaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useCallback } from 'react';
import { useDispatch } from 'react-redux';
import { zeroAddress } from 'ethereumjs-util';
import { useHistory } from 'react-router-dom';
Expand Down

0 comments on commit 2c1a8b1

Please sign in to comment.