Skip to content

Commit 6f0eff3

Browse files
jmzwarjmzwar
and
jmzwar
authored
remove performance from deposit page (#203)
* remove performance from deposit page * deps --------- Co-authored-by: jmzwar <[email protected]>
1 parent 22462cd commit 6f0eff3

File tree

3 files changed

+4
-26
lines changed

3 files changed

+4
-26
lines changed

liquidity/components/PoolBox/PoolBox.tsx

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
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';
22
import { BorderBox } from '@snx-v3/BorderBox';
33
import { FC } from 'react';
44
import { usePoolData } from '@snx-v3/usePoolData';
55
import { calculatePoolPerformanceSevenDays } from '@snx-v3/calculations';
66
import { generatePath, Link, useLocation } from 'react-router-dom';
77
import { Wei } from '@synthetixio/wei';
88
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';
129
import { usePool } from '@snx-v3/usePools';
1310

1411
const PoolBoxUi: FC<{
1512
poolName?: string;
1613
poolId?: string;
1714
sevenDaysPoolPerformanceGrowth?: Wei;
18-
}> = ({ poolName, poolId, sevenDaysPoolPerformanceGrowth }) => {
15+
}> = ({ poolName, poolId }) => {
1916
const location = useLocation();
2017
return (
21-
<BorderBox h="100%" p={4} flexDirection="column">
18+
<BorderBox p={4} flexDirection="column">
2219
{poolId ? (
2320
<Flex justifyContent="space-between">
2421
<Flex flexDirection="column">
@@ -37,19 +34,6 @@ const PoolBoxUi: FC<{
3734
<Skeleton w={16} height={6} />
3835
</Flex>
3936
)}
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-
)}
5337
{poolId && (
5438
<Button
5539
as={Link}

liquidity/components/PoolBox/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
"main": "index.ts",
55
"version": "0.0.1",
66
"dependencies": {
7-
"@chakra-ui/icons": "^2.1.1",
87
"@chakra-ui/react": "^2.8.2",
98
"@snx-v3/BorderBox": "workspace:*",
10-
"@snx-v3/TrendText": "workspace:*",
119
"@snx-v3/calculations": "workspace:*",
12-
"@snx-v3/format": "workspace:*",
1310
"@snx-v3/useParams": "workspace:*",
1411
"@snx-v3/usePoolData": "workspace:*",
1512
"@snx-v3/usePools": "workspace:*",

yarn.lock

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6073,12 +6073,9 @@ __metadata:
60736073
version: 0.0.0-use.local
60746074
resolution: "@snx-v3/PoolBox@workspace:liquidity/components/PoolBox"
60756075
dependencies:
6076-
"@chakra-ui/icons": "npm:^2.1.1"
60776076
"@chakra-ui/react": "npm:^2.8.2"
60786077
"@snx-v3/BorderBox": "workspace:*"
6079-
"@snx-v3/TrendText": "workspace:*"
60806078
"@snx-v3/calculations": "workspace:*"
6081-
"@snx-v3/format": "workspace:*"
60826079
"@snx-v3/useParams": "workspace:*"
60836080
"@snx-v3/usePoolData": "workspace:*"
60846081
"@snx-v3/usePools": "workspace:*"
@@ -6174,7 +6171,7 @@ __metadata:
61746171
languageName: unknown
61756172
linkType: soft
61766173

6177-
"@snx-v3/TrendText@workspace:*, @snx-v3/TrendText@workspace:liquidity/components/TrendText":
6174+
"@snx-v3/TrendText@workspace:liquidity/components/TrendText":
61786175
version: 0.0.0-use.local
61796176
resolution: "@snx-v3/TrendText@workspace:liquidity/components/TrendText"
61806177
dependencies:

0 commit comments

Comments
 (0)