fix trade form logos
This commit is contained in:
parent
e0af9766c5
commit
70a83a3f27
|
@ -51,8 +51,6 @@ const useJupiterRoutes = ({
|
||||||
slippage,
|
slippage,
|
||||||
swapMode,
|
swapMode,
|
||||||
}: useJupiterPropTypes) => {
|
}: useJupiterPropTypes) => {
|
||||||
console.log('amount: ', amount)
|
|
||||||
|
|
||||||
const { inputTokenInfo, outputTokenInfo } = useJupiterSwapData()
|
const { inputTokenInfo, outputTokenInfo } = useJupiterSwapData()
|
||||||
|
|
||||||
const decimals =
|
const decimals =
|
||||||
|
|
|
@ -38,6 +38,7 @@ import useJupiterMints from 'hooks/useJupiterMints'
|
||||||
import useSelectedMarket from 'hooks/useSelectedMarket'
|
import useSelectedMarket from 'hooks/useSelectedMarket'
|
||||||
import Slippage from './Slippage'
|
import Slippage from './Slippage'
|
||||||
import { formatFixedDecimals, getDecimalCount } from 'utils/numbers'
|
import { formatFixedDecimals, getDecimalCount } from 'utils/numbers'
|
||||||
|
import LogoWithFallback from '@components/shared/LogoWithFallback'
|
||||||
|
|
||||||
const TABS: [string, number][] = [
|
const TABS: [string, number][] = [
|
||||||
['Limit', 0],
|
['Limit', 0],
|
||||||
|
@ -401,11 +402,16 @@ const AdvancedTradeForm = () => {
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<div className="default-transition flex items-center rounded-md rounded-b-none border border-th-input-border bg-th-input-bkg p-2 text-sm font-bold text-th-fgd-1 md:hover:z-10 md:hover:border-th-input-border-hover lg:text-base">
|
<div className="default-transition flex items-center rounded-md rounded-b-none border border-th-input-border bg-th-input-bkg p-2 text-sm font-bold text-th-fgd-1 md:hover:z-10 md:hover:border-th-input-border-hover lg:text-base">
|
||||||
{baseLogoURI ? (
|
<LogoWithFallback
|
||||||
<Image alt="" width="24" height="24" src={baseLogoURI} />
|
alt=""
|
||||||
) : (
|
className="z-10 drop-shadow-md"
|
||||||
<QuestionMarkCircleIcon className="h-6 w-6 text-th-fgd-3" />
|
width={'24'}
|
||||||
)}
|
height={'24'}
|
||||||
|
src={baseLogoURI || `/icons/${baseSymbol?.toLowerCase()}.svg`}
|
||||||
|
fallback={
|
||||||
|
<QuestionMarkCircleIcon className={`h-5 w-5 text-th-fgd-3`} />
|
||||||
|
}
|
||||||
|
/>
|
||||||
<NumberFormat
|
<NumberFormat
|
||||||
inputMode="decimal"
|
inputMode="decimal"
|
||||||
thousandSeparator=","
|
thousandSeparator=","
|
||||||
|
|
Loading…
Reference in New Issue