Skip to content

Commit

Permalink
add tooltip for tvl in pool explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
tienkane committed Dec 18, 2024
1 parent bff35a2 commit 7cb3edb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/pages/Earns/PoolExplorer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { t } from '@lingui/macro'
import 'kyberswap-liquidity-widgets/dist/style.css'
import { useEffect, useState } from 'react'
import { Star } from 'react-feather'
import { Info, Star } from 'react-feather'
import { useNavigate, useSearchParams } from 'react-router-dom'
import { useMedia } from 'react-use'
import { Flex, Text } from 'rebass'
Expand All @@ -14,7 +14,7 @@ import { ReactComponent as IconSolidEarningPool } from 'assets/svg/ic_pool_solid
import { ReactComponent as IconUserEarnPosition } from 'assets/svg/ic_user_earn_position.svg'
import Pagination from 'components/Pagination'
import Search from 'components/Search'
import { MouseoverTooltip } from 'components/Tooltip'
import { MouseoverTooltip, MouseoverTooltipDesktopOnly } from 'components/Tooltip'
import { APP_PATHS } from 'constants/index'
import useDebounce from 'hooks/useDebounce'
import useTheme from 'hooks/useTheme'
Expand Down Expand Up @@ -242,6 +242,14 @@ const Earn = () => {
onClick={() => onSortChange(SortBy.TVL)}
>
TVL
<MouseoverTooltipDesktopOnly
text={t`Only pools with a Total Value Locked of $10,000 or more are displayed on this page`}
placement="bottom"
>
<Text marginRight={1} marginLeft={1} sx={{ position: 'relative', top: '2.5px' }}>
<Info color={theme.subText} size={16} />
</Text>
</MouseoverTooltipDesktopOnly>
<SortIcon sorted={filters.sortBy === SortBy.TVL ? (filters.orderBy as Direction) : undefined} />
</Flex>
<Flex
Expand Down

0 comments on commit 7cb3edb

Please sign in to comment.