From a4a84bf2a16e6a38bb5620b3ac3aa53ee1fd3493 Mon Sep 17 00:00:00 2001 From: Bill He Date: Tue, 29 Aug 2023 11:36:22 -0700 Subject: [PATCH] polish --- src/lib/abacus/stateNotification.ts | 1 - src/views/forms/AccountManagementForms/DepositForm.tsx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/abacus/stateNotification.ts b/src/lib/abacus/stateNotification.ts index be8d352..fbadc75 100644 --- a/src/lib/abacus/stateNotification.ts +++ b/src/lib/abacus/stateNotification.ts @@ -8,7 +8,6 @@ import type { PerpetualState, PerpetualStateChanges, SubaccountOrder, - TransferStatus, } from '@/constants/abacus'; import { Changes } from '@/constants/abacus'; diff --git a/src/views/forms/AccountManagementForms/DepositForm.tsx b/src/views/forms/AccountManagementForms/DepositForm.tsx index bc6d97d..0abcf4f 100644 --- a/src/views/forms/AccountManagementForms/DepositForm.tsx +++ b/src/views/forms/AccountManagementForms/DepositForm.tsx @@ -1,7 +1,7 @@ import { type FormEvent, useCallback, useEffect, useMemo, useState } from 'react'; import styled, { type AnyStyledComponent } from 'styled-components'; import { type NumberFormatValues } from 'react-number-format'; -import { useDispatch, shallowEqual, useSelector } from 'react-redux'; +import { shallowEqual, useSelector } from 'react-redux'; import { TESTNET_CHAIN_ID } from '@dydxprotocol/v4-client'; import { ethers } from 'ethers'; @@ -46,7 +46,6 @@ type DepositFormProps = { export const DepositForm = ({ onDeposit, onError }: DepositFormProps) => { const stringGetter = useStringGetter(); - const dispatch = useDispatch(); const [error, setError] = useState(null); const [isLoading, setIsLoading] = useState(false);