@@ -2,7 +2,7 @@ import { useCallback, useMemo } from 'react';
2
2
import { useIcon } from '../../core-react/internal/hooks/useIcon' ;
3
3
import { getRoundedAmount } from '../../core/utils/getRoundedAmount' ;
4
4
import { Skeleton } from '../../internal/components/Skeleton' ;
5
- import { cn , color , pressable , text } from '../../styles/theme' ;
5
+ import { cn , pressable , text } from '../../styles/theme' ;
6
6
import type { FundCardAmountInputTypeSwitchPropsReact } from '../types' ;
7
7
import { truncateDecimalPlaces } from '../utils/truncateDecimalPlaces' ;
8
8
import { useFundContext } from './FundCardProvider' ;
@@ -38,22 +38,6 @@ export const FundCardAmountInputTypeSwitch = ({
38
38
[ asset ] ,
39
39
) ;
40
40
41
- const exchangeRateLine = useMemo ( ( ) => {
42
- return (
43
- < span
44
- data-testid = "ockExchangeRateLine"
45
- className = { cn (
46
- text . label2 ,
47
- color . foregroundMuted ,
48
- 'font-normal' ,
49
- 'pl-1' ,
50
- ) }
51
- >
52
- ({ formatUSD ( '1' ) } = { exchangeRate ?. toFixed ( 8 ) } { asset } )
53
- </ span >
54
- ) ;
55
- } , [ formatUSD , exchangeRate , asset ] ) ;
56
-
57
41
const amountLine = useMemo ( ( ) => {
58
42
return (
59
43
< span data-testid = "ockAmountLine" className = { cn ( text . label1 ) } >
@@ -88,10 +72,7 @@ export const FundCardAmountInputTypeSwitch = ({
88
72
>
89
73
< div className = "h-[1.125rem] w-[1.125rem]" > { iconSvg } </ div >
90
74
</ button >
91
- < div className = "w-full truncate" >
92
- { amountLine }
93
- { exchangeRateLine }
94
- </ div >
75
+ < div className = "w-full truncate" > { amountLine } </ div >
95
76
</ div >
96
77
) ;
97
78
} ;
0 commit comments