From 0cc978e6c9a71e7c3b808b1525f72adaf3ccc06c Mon Sep 17 00:00:00 2001 From: martines3000 Date: Tue, 3 Sep 2024 17:27:14 +0200 Subject: [PATCH] chore: lint --- .../src/components/DashboardView/Header.tsx | 8 ++++---- .../src/components/DashboardView/Input.tsx | 4 ++-- apps/frontend-v2/src/components/FaucetView/index.tsx | 2 +- apps/frontend-v2/src/hooks/useBorrowCapacity.ts | 12 ++++++------ apps/frontend-v2/src/hooks/useSupplyBase.ts | 2 +- apps/frontend-v2/src/hooks/useSupplyCollateral.ts | 2 +- apps/frontend-v2/src/hooks/useWithdrawBase.ts | 2 +- apps/frontend-v2/src/hooks/useWithdrawCollateral.ts | 2 +- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/frontend-v2/src/components/DashboardView/Header.tsx b/apps/frontend-v2/src/components/DashboardView/Header.tsx index b11b53ca..ac468685 100644 --- a/apps/frontend-v2/src/components/DashboardView/Header.tsx +++ b/apps/frontend-v2/src/components/DashboardView/Header.tsx @@ -1,12 +1,12 @@ import { + useBorrowCapacity, useBorrowRate, useCollateralConfigurations, - useSupplyRate, - useUserSupplyBorrow, - useUserCollateralAssets, - useBorrowCapacity, useMarketConfiguration, usePrice, + useSupplyRate, + useUserCollateralAssets, + useUserSupplyBorrow, } from '@/hooks'; import { formatUnits, getBorrowApr, getSupplyApr } from '@/utils'; diff --git a/apps/frontend-v2/src/components/DashboardView/Input.tsx b/apps/frontend-v2/src/components/DashboardView/Input.tsx index 91d7f186..4d928811 100644 --- a/apps/frontend-v2/src/components/DashboardView/Input.tsx +++ b/apps/frontend-v2/src/components/DashboardView/Input.tsx @@ -1,8 +1,8 @@ import { - usePrice, - useSupplyCollateral, useMarketConfiguration, + usePrice, useSupplyBase, + useSupplyCollateral, useWithdrawBase, useWithdrawCollateral, } from '@/hooks'; diff --git a/apps/frontend-v2/src/components/FaucetView/index.tsx b/apps/frontend-v2/src/components/FaucetView/index.tsx index dd4d5af3..64cc91dc 100644 --- a/apps/frontend-v2/src/components/FaucetView/index.tsx +++ b/apps/frontend-v2/src/components/FaucetView/index.tsx @@ -1,5 +1,4 @@ 'use client'; -import React, { useMemo } from 'react'; import { useCollateralConfigurations, useMarketConfiguration, @@ -15,6 +14,7 @@ import { useAccount, useBalance } from '@fuels/react'; import { useIsMutating } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { BN, toFixed } from 'fuels'; +import React, { useMemo } from 'react'; import { Button } from '../ui/button'; type FaucetRowProps = { diff --git a/apps/frontend-v2/src/hooks/useBorrowCapacity.ts b/apps/frontend-v2/src/hooks/useBorrowCapacity.ts index 3d9455c3..f760978c 100644 --- a/apps/frontend-v2/src/hooks/useBorrowCapacity.ts +++ b/apps/frontend-v2/src/hooks/useBorrowCapacity.ts @@ -1,13 +1,13 @@ import { useMarketStore } from '@/stores'; -import { useUserSupplyBorrow } from './useUserSupplyBorrow'; -import { useCollateralConfigurations } from './useCollateralConfigurations'; -import { useUserCollateralAssets } from './useUserCollateralAssets'; -import { useQuery } from '@tanstack/react-query'; +import { formatUnits } from '@/utils'; import { useAccount } from '@fuels/react'; +import { useQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; -import { usePrice } from './usePrice'; -import { formatUnits } from '@/utils'; +import { useCollateralConfigurations } from './useCollateralConfigurations'; import { useMarketConfiguration } from './useMarketConfiguration'; +import { usePrice } from './usePrice'; +import { useUserCollateralAssets } from './useUserCollateralAssets'; +import { useUserSupplyBorrow } from './useUserSupplyBorrow'; export const useBorrowCapacity = () => { const { market } = useMarketStore(); diff --git a/apps/frontend-v2/src/hooks/useSupplyBase.ts b/apps/frontend-v2/src/hooks/useSupplyBase.ts index aeb7c2fc..6b2ddc41 100644 --- a/apps/frontend-v2/src/hooks/useSupplyBase.ts +++ b/apps/frontend-v2/src/hooks/useSupplyBase.ts @@ -1,3 +1,4 @@ +import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts'; import { Market } from '@/contract-types'; import { useMarketStore } from '@/stores'; import { DEPLOYED_MARKETS } from '@/utils'; @@ -6,7 +7,6 @@ import { useMutation } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { toast } from 'react-toastify'; import { useMarketConfiguration } from './useMarketConfiguration'; -import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts'; export const useSupplyBase = () => { const { wallet } = useWallet(); diff --git a/apps/frontend-v2/src/hooks/useSupplyCollateral.ts b/apps/frontend-v2/src/hooks/useSupplyCollateral.ts index b2cba0ba..8f87adf6 100644 --- a/apps/frontend-v2/src/hooks/useSupplyCollateral.ts +++ b/apps/frontend-v2/src/hooks/useSupplyCollateral.ts @@ -1,3 +1,4 @@ +import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts'; import { Market } from '@/contract-types'; import { useMarketStore } from '@/stores'; import { DEPLOYED_MARKETS } from '@/utils'; @@ -6,7 +7,6 @@ import { useMutation } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { toast } from 'react-toastify'; import { useCollateralConfigurations } from './useCollateralConfigurations'; -import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts'; type useSupplyCollateralProps = { actionTokenAssetId: string | null | undefined; diff --git a/apps/frontend-v2/src/hooks/useWithdrawBase.ts b/apps/frontend-v2/src/hooks/useWithdrawBase.ts index e167e8ad..ce32b116 100644 --- a/apps/frontend-v2/src/hooks/useWithdrawBase.ts +++ b/apps/frontend-v2/src/hooks/useWithdrawBase.ts @@ -1,3 +1,4 @@ +import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts'; import { Market } from '@/contract-types'; import type { PriceDataUpdateInput } from '@/contract-types/Market'; import { useMarketStore } from '@/stores'; @@ -11,7 +12,6 @@ import { useMutation } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { toast } from 'react-toastify'; import { useMarketConfiguration } from './useMarketConfiguration'; -import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts'; export const useWithdrawBase = () => { const { wallet } = useWallet(); diff --git a/apps/frontend-v2/src/hooks/useWithdrawCollateral.ts b/apps/frontend-v2/src/hooks/useWithdrawCollateral.ts index b56935e1..ca9b470d 100644 --- a/apps/frontend-v2/src/hooks/useWithdrawCollateral.ts +++ b/apps/frontend-v2/src/hooks/useWithdrawCollateral.ts @@ -1,3 +1,4 @@ +import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts'; import { Market } from '@/contract-types'; import type { PriceDataUpdateInput } from '@/contract-types/Market'; import { useMarketStore } from '@/stores'; @@ -11,7 +12,6 @@ import { useMutation } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { toast } from 'react-toastify'; import { useCollateralConfigurations } from './useCollateralConfigurations'; -import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts'; type useWithdrawCollateralProps = { actionTokenAssetId: string | null | undefined;