File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
src/components/trade/TradeModule/AssetSelector Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mars-v2-frontend" ,
3
- "version" : " 2.8.4 " ,
3
+ "version" : " 2.8.5 " ,
4
4
"homepage" : " ./" ,
5
5
"private" : false ,
6
6
"license" : " SEE LICENSE IN LICENSE FILE" ,
Original file line number Diff line number Diff line change 1
1
import { useCallback } from 'react'
2
2
3
+ import AssetImage from 'components/common/assets/AssetImage'
3
4
import Button from 'components/common/Button'
4
5
import { ChevronDown } from 'components/common/Icons'
5
6
import Text from 'components/common/Text'
@@ -43,9 +44,12 @@ export default function AssetSelectorPair(props: Props) {
43
44
onClick = { ( ) => useStore . setState ( { assetOverlayState : 'pair' } ) }
44
45
className = 'flex items-center justify-between w-full py-5 rounded-b-none bg-white/10'
45
46
>
46
- < Text size = 'sm' className = 'text-white/60' >
47
- < span className = 'text-white' > { buyAsset . symbol } </ span > /{ sellAsset . symbol }
48
- </ Text >
47
+ < div className = 'flex items-center gap-1' >
48
+ < AssetImage asset = { buyAsset } className = 'w-5 h-5' />
49
+ < Text size = 'sm' className = 'text-white/60' >
50
+ < span className = 'text-white' > { buyAsset . symbol } </ span > /{ sellAsset . symbol }
51
+ </ Text >
52
+ </ div >
49
53
< div className = 'flex items-center gap-2' >
50
54
< Text > All markets</ Text >
51
55
< ChevronDown className = 'w-3 h-3' />
Original file line number Diff line number Diff line change 1
1
import { useCallback } from 'react'
2
2
3
+ import AssetImage from 'components/common/assets/AssetImage'
3
4
import Button from 'components/common/Button'
4
5
import { ChevronDown } from 'components/common/Icons'
5
6
import Text from 'components/common/Text'
@@ -50,6 +51,7 @@ export default function AssetSelectorPerps(props: Props) {
50
51
className = 'flex items-center justify-between w-full py-5 rounded-b-none bg-white/5 '
51
52
>
52
53
< div className = 'flex items-center gap-2' >
54
+ < AssetImage asset = { perpsAsset } className = 'w-5 h-5' />
53
55
< Text size = 'sm' className = 'text-white/60' >
54
56
< span className = 'text-white' > { perpsAsset . symbol } </ span > /USD
55
57
</ Text >
You can’t perform that action at this time.
0 commit comments