Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 committed Sep 3, 2024
1 parent 1aa80e3 commit 0cc978e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions apps/frontend-v2/src/components/DashboardView/Header.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend-v2/src/components/DashboardView/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
usePrice,
useSupplyCollateral,
useMarketConfiguration,
usePrice,
useSupplyBase,
useSupplyCollateral,
useWithdrawBase,
useWithdrawCollateral,
} from '@/hooks';
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v2/src/components/FaucetView/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use client';
import React, { useMemo } from 'react';
import {
useCollateralConfigurations,
useMarketConfiguration,
Expand All @@ -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 = {
Expand Down
12 changes: 6 additions & 6 deletions apps/frontend-v2/src/hooks/useBorrowCapacity.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v2/src/hooks/useSupplyBase.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts';
import { Market } from '@/contract-types';
import { useMarketStore } from '@/stores';
import { DEPLOYED_MARKETS } from '@/utils';
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v2/src/hooks/useSupplyCollateral.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ErrorToast, TransactionSuccessToast } from '@/components/Toasts';
import { Market } from '@/contract-types';
import { useMarketStore } from '@/stores';
import { DEPLOYED_MARKETS } from '@/utils';
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v2/src/hooks/useWithdrawBase.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v2/src/hooks/useWithdrawCollateral.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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;
Expand Down

0 comments on commit 0cc978e

Please sign in to comment.