Skip to content

Commit

Permalink
feat: hide my earnings and update about page (#2427)
Browse files Browse the repository at this point in the history
* feat: hide my earnings and update about page

* remove elastic legacy note
  • Loading branch information
viet-nv authored Dec 6, 2023
1 parent a43959f commit 7a3388a
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 560 deletions.
11 changes: 0 additions & 11 deletions src/components/Header/groups/EarnNavGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Flex } from 'rebass'

import { MoneyBag } from 'components/Icons'
import Icon from 'components/Icons/Icon'
import { NewLabel } from 'components/Menu'
import { TutorialIds } from 'components/Tutorial/TutorialSwap/constant'
import { APP_PATHS } from 'constants/index'
import { useActiveWeb3React } from 'hooks'
Expand Down Expand Up @@ -63,16 +62,6 @@ const EarnNavGroup = () => {
</Flex>
</StyledNavLink>

<StyledNavLink id="my-earnings-link" to={APP_PATHS.MY_EARNINGS}>
<Flex sx={{ gap: '12px' }} alignItems="center">
<Icon id="pig" size={16} />
<Trans>My Earnings</Trans>
<NewLabel>
<Trans>New</Trans>
</NewLabel>
</Flex>
</StyledNavLink>

<StyledNavLink
id="my-pools-nav-link"
data-testid="my-pools-nav-link"
Expand Down
1 change: 0 additions & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export const APP_PATHS = {
ELASTIC_REMOVE_POOL: '/elastic/remove',
FARMS: '/farms',
MY_POOLS: '/myPools',
MY_EARNINGS: '/my-earnings',
DISCOVER: '/discover',
KYBERAI: '/KyberAI',
KYBERAI_ABOUT: '/KyberAI/About',
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useMixpanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,6 @@ export const useGlobalMixpanelEvents = () => {
'notification-center': 'Notification',
[APP_PATHS.KYBERAI_ABOUT]: 'KyberAI About',
[APP_PATHS.KYBERDAO_KNC_UTILITY]: 'Gas refund - KNC Utility',
[APP_PATHS.MY_EARNINGS]: 'Earning Dashboard',
}
const protectedPaths: { [key: string]: string } = {
[APP_PATHS.KYBERAI_RANKINGS]: 'KyberAI Rankings',
Expand Down
Loading

0 comments on commit 7a3388a

Please sign in to comment.