File tree Expand file tree Collapse file tree 4 files changed +27
-35
lines changed
earn/components/earn-widget/components
leverage/components/leverage-widget
components/swap/components/quote-result Expand file tree Collapse file tree 4 files changed +27
-35
lines changed Original file line number Diff line number Diff line change 1
- import { Flex , Text } from '@chakra-ui/react'
1
+ import { Flex } from '@chakra-ui/react'
2
2
import { ChevronDownIcon } from '@heroicons/react/20/solid'
3
3
import Image from 'next/image'
4
4
@@ -31,9 +31,7 @@ export const SelectorButton = ({
31
31
visibility = { visible ? 'visible' : 'hidden' }
32
32
>
33
33
< Image alt = { `${ symbol } logo` } src = { image } width = { 20 } height = { 20 } />
34
- < Text color = { colors . ic . black } fontSize = { '14px' } fontWeight = { 500 } mx = '8px' >
35
- { symbol }
36
- </ Text >
34
+ < p className = 'text-ic-black mx-2 text-sm font-medium' > { symbol } </ p >
37
35
{ showChevron !== false && (
38
36
< ChevronDownIcon className = 'text-ic-gray-900 size-6' />
39
37
) }
Original file line number Diff line number Diff line change 1
- import { Flex , Input , Text } from '@chakra-ui/react'
1
+ import { Flex , Input } from '@chakra-ui/react'
2
2
import { useState } from 'react'
3
3
4
4
import { colors } from '@/lib/styles/colors'
@@ -65,20 +65,16 @@ export const TradeInputSelector = (props: TradeInputSelectorProps) => {
65
65
< Caption caption = { props . caption } />
66
66
< Flex align = 'center' direction = 'row' justify = 'space-between' mt = '6px' >
67
67
{ config . isReadOnly ? (
68
- < Text
69
- color = {
68
+ < p
69
+ className = { cn (
70
+ 'text-ellipsis whitespace-nowrap pr-1 text-[25px] font-medium' ,
70
71
props . selectedTokenAmount === '0'
71
- ? colors . ic . gray [ 400 ]
72
- : colors . ic . black
73
- }
74
- fontSize = '25px'
75
- fontWeight = { 500 }
76
- pr = '4px'
77
- textOverflow = 'ellipsis'
78
- whiteSpace = 'nowrap'
72
+ ? 'text-ic-gray-400'
73
+ : 'text-ic-black' ,
74
+ ) }
79
75
>
80
76
{ props . selectedTokenAmount }
81
- </ Text >
77
+ </ p >
82
78
) : (
83
79
< Input
84
80
className = 'text-ic-black dark:text-ic-white bg-transparent pr-1 text-3xl'
@@ -160,13 +156,11 @@ interface PriceUsdProps {
160
156
161
157
const PriceUsd = ( props : PriceUsdProps ) => (
162
158
< Flex >
163
- < Text fontSize = '12px' fontWeight = { 500 } textColor = { colors . ic . gray [ 400 ] } >
164
- { props . fiat }
165
- </ Text >
159
+ < p className = 'text-ic-gray-400 text-xs font-medium' > { props . fiat } </ p >
166
160
{ props . priceImpact && (
167
- < Text fontSize = '12px' textColor = { props . priceImpact . colorCoding } >
161
+ < p className = { cn ( 'text-xs' , props . priceImpact . colorCoding ) } >
168
162
{ props . priceImpact . value }
169
- </ Text >
163
+ </ p >
170
164
) }
171
165
</ Flex >
172
166
)
Original file line number Diff line number Diff line change 1
- import { Flex , Input , Text } from '@chakra-ui/react'
1
+ import { Flex , Input } from '@chakra-ui/react'
2
2
3
3
import { Caption } from '@/components/swap/components/caption'
4
4
import { SelectorButton } from '@/components/swap/components/selector-button'
@@ -149,9 +149,9 @@ const PriceUsd = (props: PriceUsdProps) => (
149
149
< Flex >
150
150
< p className = 'text-xs font-medium text-neutral-400' > { props . fiat } </ p >
151
151
{ props . priceImpact && (
152
- < Text fontSize = '12px' textColor = { props . priceImpact . colorCoding } >
152
+ < p className = { cn ( 'text-xs' , props . priceImpact . colorCoding ) } >
153
153
{ props . priceImpact . value }
154
- </ Text >
154
+ </ p >
155
155
) }
156
156
</ Flex >
157
157
)
Original file line number Diff line number Diff line change 1
- import { Flex , Text } from '@chakra-ui/react'
2
- import clsx from 'clsx'
1
+ import { Flex } from '@chakra-ui/react'
3
2
import Image from 'next/image'
4
3
5
4
import { StyledSkeleton } from '@/components/skeleton'
@@ -83,22 +82,23 @@ export const QuoteAvailable = (props: QuoteAvailableProps) => {
83
82
</ Flex >
84
83
</ Flex >
85
84
</ Flex >
86
- < Text
87
- className = { clsx ( isSelected ? 'text-ic-gray-800' : 'text-ic-gray-500' ) }
88
- fontSize = { '2xl' }
89
- fontWeight = { 500 }
85
+ < p
86
+ className = { cn (
87
+ 'text-2xl font-medium' ,
88
+ isSelected ? 'text-ic-gray-800' : 'text-ic-gray-500' ,
89
+ ) }
90
90
>
91
91
{ isLoading && < StyledSkeleton width = { 200 } /> }
92
92
{ ! isLoading && quote && quote . outputAmount }
93
- </ Text >
93
+ </ p >
94
94
< Flex
95
95
direction = { [ 'column' , 'row' ] }
96
96
justify = { [ 'flex-start' , 'space-between' ] }
97
97
>
98
- < Text className = 'text-ic-gray-500' fontSize = { 'xs' } fontWeight = { 500 } >
98
+ < p className = 'text-ic-gray-500 text-xs font-medium' >
99
99
{ isLoading && < StyledSkeleton width = { 80 } /> }
100
100
{ ! isLoading && quote && quote . feesTotal }
101
- </ Text >
101
+ </ p >
102
102
{ quote && (
103
103
< Flex direction = 'row' gap = '6px' >
104
104
< Image
@@ -108,9 +108,9 @@ export const QuoteAvailable = (props: QuoteAvailableProps) => {
108
108
height = { 10 }
109
109
width = { 10 }
110
110
/>
111
- < Text className = 'text-ic-gray-500' fontSize = { 'xs' } fontWeight = { 500 } >
111
+ < p className = 'text-ic-gray-500 text-xs font-medium' >
112
112
{ quote . feesGas }
113
- </ Text >
113
+ </ p >
114
114
</ Flex >
115
115
) }
116
116
</ Flex >
You can’t perform that action at this time.
0 commit comments