Skip to content

Commit

Permalink
Move the tooltip on the position details card
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Dec 8, 2023
1 parent 1ff9cfb commit be3d4a5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions dapp/src/components/Overview/PositionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
CardBody,
Card,
CardFooter,
HStack,
} from "@chakra-ui/react"
import { BITCOIN, USD } from "../../constants"
import { Info } from "../../static/icons"
Expand All @@ -16,16 +17,18 @@ export default function PositionDetails() {
return (
<Card h="100%">
<CardBody>
<Text>Your positions</Text>
<HStack justifyContent="space-between">
<Text>Your positions</Text>
{/* TODO: Add correct text for tooltip */}
<Tooltip label="Template">
<Icon as={Info} color={useColorModeValue("black", "grey.80")} />
</Tooltip>
</HStack>
<Text>
34.75 <Text as="span">{BITCOIN.symbol}</Text>
</Text>
<Text>
1.245.148,1 <Text as="span">{USD.symbol}</Text>
{/* TODO: Add correct text for tooltip */}
<Tooltip label="Template">
<Icon as={Info} color={useColorModeValue("black", "grey.80")} />
</Tooltip>
</Text>
</CardBody>
<CardFooter flexDirection="column" gap={2}>
Expand Down

0 comments on commit be3d4a5

Please sign in to comment.