Skip to content

Commit

Permalink
fix last errors
Browse files Browse the repository at this point in the history
  • Loading branch information
p6te committed Oct 11, 2024
1 parent 7d61acd commit 52f4eb3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import classNames from 'classnames'
import React, { CSSProperties, useRef } from 'react'
import useStyles from './style'
import { PublicKey } from '@solana/web3.js'
import { NetworkType } from '@store/consts/static'

interface IProps {
setValue: (value: string) => void
Expand Down Expand Up @@ -36,6 +37,7 @@ interface IProps {
showMaxButton: boolean
showBlur: boolean
hiddenUnknownTokens: boolean
network: NetworkType
}

export const AmountInput: React.FC<IProps> = ({
Expand Down Expand Up @@ -63,7 +65,8 @@ export const AmountInput: React.FC<IProps> = ({
isBalanceLoading,
showMaxButton = true,
showBlur,
hiddenUnknownTokens
hiddenUnknownTokens,
network
}) => {
const hideBalance = balance === '- -' || !balance || hideBalances
const { classes } = useStyles()
Expand Down Expand Up @@ -125,6 +128,7 @@ export const AmountInput: React.FC<IProps> = ({
initialHideUnknownTokensValue={initialHideUnknownTokensValue}
onHideUnknownTokensChange={onHideUnknownTokensChange}
hiddenUnknownTokens={hiddenUnknownTokens}
network={network}
/>
{showBlur ? (
<div className={classes.blur}></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import searchIcon from '@static/svg/lupa.svg'
import { theme } from '@static/theme'
import React, { forwardRef, useEffect, useMemo, useRef, useState } from 'react'
import { FixedSizeList as List } from 'react-window'
import CustomScrollbar from '../CustomScrollbar'
import useStyles from '../style'

import AddTokenModal from '@components/Modals/AddTokenModal/AddTokenModal'
import {
Box,
Expand All @@ -25,6 +23,7 @@ import icons from '@static/icons'
import { TooltipHover } from '@components/TooltipHover/TooltipHover'
import { PublicKey } from '@solana/web3.js'
import { NetworkType } from '@store/consts/static'
import CustomScrollbar from './CustomScrollbar'

export interface ISelectTokenModal {
tokens: SwapToken[]
Expand Down
2 changes: 2 additions & 0 deletions src/components/Swap/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ export const Swap: React.FC<ISwap> = ({
(inputRef === inputTarget.TO || inputRef === inputTarget.DEFAULT))
}
hiddenUnknownTokens={hideUnknownTokens}
network={network}
/>
</Box>
<Box className={classes.tokenComponentTextContainer}>
Expand Down Expand Up @@ -732,6 +733,7 @@ export const Swap: React.FC<ISwap> = ({
(inputRef === inputTarget.FROM || inputRef === inputTarget.DEFAULT))
}
hiddenUnknownTokens={hideUnknownTokens}
network={network}
/>
</Box>
<Box className={classes.transactionDetails}>
Expand Down

0 comments on commit 52f4eb3

Please sign in to comment.