Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean-details-section #1218

Merged
merged 2 commits into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions src/components/_cards/CellarDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,6 @@ const CellarDetailsCard: VFC<CellarDetailsProps> = ({
0.00%
</CardStat>
</Stack>

<CardStat label="TVL" flex={0} tooltip="Total value locked">
{tvm?.formatted || "--"}
</CardStat>
<CardStat
label="strategy assets"
tooltip="Strategy will have exposure to 1 or more of these assets at any given time"
Expand Down Expand Up @@ -256,68 +252,6 @@ const CellarDetailsCard: VFC<CellarDetailsProps> = ({
<Icon as={FaExternalLinkAlt} color="purple.base" />
</Link>
</CardStat>
<CardStat label="Strategy Details" flex={0}>
<Button
onClick={() => router.push(`/strategies/${slug}`)}
variant="outline"
borderColor="purple.base"
borderWidth={2}
mt={1}
>
<Text mr={2} fontSize={"sm"}>{`View More`}</Text>
<ArrowRightIcon />
</Button>
</CardStat>
<VStack
width="lg"
spacing={2}
align="stretch"
maxW={{ base: "100%", md: "150%" }}
>
<HStack spacing={1} align="center">
<Tooltip
hasArrow
placement="top"
label="Strategy earned performance split"
bg="surface.bg"
color="neutral.300"
>
<HStack align="center" spacing={1}>
<CardHeading>performance split</CardHeading>
<InformationIcon color="neutral.300" boxSize={3} />
</HStack>
</Tooltip>
</HStack>
<Stack h="4px">
{/* @ts-ignore */}
<BarChart
layout="horizontal"
colors={barChartTheme}
borderColor={theme.colors.neutral[800]}
borderWidth={1}
borderRadius={2}
keys={performanceSplitKeys}
data={[performanceSplit]}
/>
</Stack>
<HStack spacing={8}>
{Object.entries(performanceSplit).map(
([key, value], i) => {
return (
<HStack key={i} spacing={1}>
<Circle size={2} bg={barChartTheme[i]} />
<Text
fontSize="0.625rem"
textTransform="capitalize"
>
{value}% {key}
</Text>
</HStack>
)
}
)}
</HStack>
</VStack>
</SimpleGrid>
<StrategyBreakdownCard
cellarDataMap={cellarDataMap}
Expand Down