1
- import { Box , Button , Flex , Heading , Skeleton , Text , Tooltip } from '@chakra-ui/react' ;
1
+ import { Box , Button , Flex , Heading , Skeleton , Text } from '@chakra-ui/react' ;
2
2
import { BorderBox } from '@snx-v3/BorderBox' ;
3
3
import { FC } from 'react' ;
4
4
import { usePoolData } from '@snx-v3/usePoolData' ;
5
5
import { calculatePoolPerformanceSevenDays } from '@snx-v3/calculations' ;
6
6
import { generatePath , Link , useLocation } from 'react-router-dom' ;
7
7
import { Wei } from '@synthetixio/wei' ;
8
8
import { useParams } from '@snx-v3/useParams' ;
9
- import { InfoIcon } from '@chakra-ui/icons' ;
10
- import { TrendText } from '@snx-v3/TrendText' ;
11
- import { currency } from '@snx-v3/format' ;
12
9
import { usePool } from '@snx-v3/usePools' ;
13
10
14
11
const PoolBoxUi : FC < {
15
12
poolName ?: string ;
16
13
poolId ?: string ;
17
14
sevenDaysPoolPerformanceGrowth ?: Wei ;
18
- } > = ( { poolName, poolId, sevenDaysPoolPerformanceGrowth } ) => {
15
+ } > = ( { poolName, poolId } ) => {
19
16
const location = useLocation ( ) ;
20
17
return (
21
- < BorderBox h = "100%" p = { 4 } flexDirection = "column" >
18
+ < BorderBox p = { 4 } flexDirection = "column" >
22
19
{ poolId ? (
23
20
< Flex justifyContent = "space-between" >
24
21
< Flex flexDirection = "column" >
@@ -37,19 +34,6 @@ const PoolBoxUi: FC<{
37
34
< Skeleton w = { 16 } height = { 6 } />
38
35
</ Flex >
39
36
) }
40
- { sevenDaysPoolPerformanceGrowth && (
41
- < BorderBox mt = { 4 } p = { 4 } flexDirection = "column" >
42
- < Heading fontSize = "md" alignItems = "center" display = "flex" >
43
- Performance Last 7 Days{ ' ' }
44
- < Tooltip label = "Average growth of all markets in the pool for the last 7 days" >
45
- < InfoIcon width = "12px" height = "12px" ml = { 1 } />
46
- </ Tooltip >
47
- </ Heading >
48
- < TrendText fontSize = "2xl" fontWeight = "bold" value = { sevenDaysPoolPerformanceGrowth } >
49
- { currency ( sevenDaysPoolPerformanceGrowth , { style : 'percent' } ) }
50
- </ TrendText >
51
- </ BorderBox >
52
- ) }
53
37
{ poolId && (
54
38
< Button
55
39
as = { Link }
0 commit comments