Skip to content

Commit

Permalink
fix: ui
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Jul 27, 2023
1 parent 75bce71 commit 38623eb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
Binary file modified src/assets/images/bg_share_my_earning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/bg_share_my_earning_mb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions src/pages/MyEarnings/ElasticPools/SinglePool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Divider from 'components/Divider'
import DoubleCurrencyLogo from 'components/DoubleLogo'
import { FarmTag } from 'components/FarmTag'
import Loader from 'components/Loader'
import { MouseoverTooltip } from 'components/Tooltip'
import { MouseoverTooltip, TextDashed } from 'components/Tooltip'
import { APRTooltipContent } from 'components/YieldPools/FarmingPoolAPRCell'
import { APP_PATHS, ELASTIC_BASE_FEE_UNIT, PROMM_ANALYTICS_URL } from 'constants/index'
import { NETWORKS_INFO } from 'constants/networks'
Expand Down Expand Up @@ -333,7 +333,13 @@ const SinglePool: React.FC<Props> = ({ poolEarning, chainId, positionEarnings, p
<MobileStat mobileView={mobileView}>
<StatItem label="TVL" value={formatDollarAmount(+poolEarning.totalValueLockedUsd)} />
<StatItem
label="APR"
label={
<MouseoverTooltip
text={t`Average estimated return based on yearly trading fees from the pool & additional bonus rewards if you participate in the farm`}
>
<TextDashed>APR</TextDashed>
</MouseoverTooltip>
}
value={
<MouseoverTooltip
width="fit-content"
Expand Down
10 changes: 8 additions & 2 deletions src/pages/MyEarnings/ElasticPools/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChainId } from '@kyberswap/ks-sdk-core'
import { Trans } from '@lingui/macro'
import { Trans, t } from '@lingui/macro'
import { useMemo } from 'react'
import { Info } from 'react-feather'
import { useMedia } from 'react-use'
Expand All @@ -8,6 +8,7 @@ import { useGetElasticEarningQuery, useGetElasticLegacyEarningQuery } from 'serv
import { ElasticPoolEarningWithDetails, ElasticPositionEarningWithDetails } from 'services/earning/types'
import styled from 'styled-components'

import InfoHelper from 'components/InfoHelper'
import LoaderWithKyberLogo from 'components/LocalLoader'
import { EMPTY_ARRAY } from 'constants/index'
import { VERSION } from 'constants/v2'
Expand Down Expand Up @@ -189,7 +190,12 @@ const ElasticPools = () => {
<Trans>Token Pair | Fee</Trans>
</Text>
<Text>TVL</Text>
<Text>APR</Text>
<Text>
APR
<InfoHelper
text={t`Average estimated return based on yearly trading fees from the pool & additional bonus rewards if you participate in the farm`}
/>
</Text>
<Text>
<Trans>Volume (24h)</Trans>
</Text>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/MyEarnings/ShareModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export default function ShareModal({ isOpen, setIsOpen, title, value, poolInfo }
<RowBetween>
{!isMobile && (
<ButtonWrapper onClick={() => setIsSharePc(!isSharePc)}>
<Icon id="devices" size={20} />
<Icon id="devices" size={20} style={{ color: theme.subText }} />
</ButtonWrapper>
)}
<ShareContainer>
Expand Down

0 comments on commit 38623eb

Please sign in to comment.