Skip to content

Commit

Permalink
Clean imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed May 8, 2024
1 parent f274044 commit 2f6b360
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { useGasEstimator } from '@/utils/hooks/useGasEstimator'
import GasIcon from '@/components/icons/GasIcon'
import { trimTrailingZeroesAfterDecimal } from '@/utils/trimTrailingZeroesAfterDecimal'
import { formatAmount } from '@/utils/formatAmount'
import { formatBigIntToString } from '@/utils/bigint/format'

const handleFocusOnBridgeInput = () => {
inputRef.current?.focus()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react'
import React, { useEffect } from 'react'
import { Address } from 'viem'
import { useDispatch } from 'react-redux'
import _, { isArray } from 'lodash'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React, { useEffect, useState, useRef, useCallback, useMemo } from 'react'
import { useDispatch } from 'react-redux'
import { useAccount } from 'wagmi'

import MiniMaxButton from '@/components/buttons/MiniMaxButton'
import { TokenSelector } from '@/components/ui/TokenSelector'
import { formatBigIntToString, stringToBigInt } from '@/utils/bigint/format'
import { cleanNumberInput } from '@/utils/cleanNumberInput'
Expand Down
35 changes: 0 additions & 35 deletions packages/synapse-interface/components/buttons/MiniMaxButton.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion packages/synapse-interface/utils/formatAmount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const formatAmount = (
const fullAmount = options?.fullAmount ?? false
const standardDigits = options?.standardDigits ?? 4
const useCompactNotation = options?.useCompactNotation ?? true
const compactDigits = options?.compactDigits ?? useCompactNotation ? 2 : 0
const compactDigits = options?.compactDigits ?? (useCompactNotation ? 2 : 0)
const minimumAmount = options?.minimumAmount ?? 0.0001

const locales = 'en-UK'
Expand Down

0 comments on commit 2f6b360

Please sign in to comment.