Skip to content

Commit

Permalink
chore: remove new from nft tab (#8827)
Browse files Browse the repository at this point in the history
* chore: remove new from nft tab

* chore: remove translation import

---------

Co-authored-by: gomes <[email protected]>
  • Loading branch information
0xApotheosis and gomesalexandre authored Feb 13, 2025
1 parent 7b69e34 commit 341c1ed
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { ResponsiveValue } from '@chakra-ui/react'
import { Container, Flex, Stack, useColorModeValue } from '@chakra-ui/react'
import type { Property } from 'csstype'
import { memo, useEffect, useLayoutEffect, useMemo, useRef } from 'react'
import { useTranslate } from 'react-polyglot'
import { useLocation } from 'react-router'
import { Amount } from 'components/Amount/Amount'
import { useFeatureFlag } from 'hooks/useFeatureFlag/useFeatureFlag'
Expand Down Expand Up @@ -40,7 +39,6 @@ const navCss = {
export const DashboardHeader = memo(({ tabComponent }: { tabComponent?: React.ReactNode }) => {
const isNftsEnabled = useFeatureFlag('Jaypegz')
const location = useLocation()
const translate = useTranslate()
const activeRef = useRef<HTMLButtonElement | null>(null)
const containerRef = useRef<HTMLDivElement | null>(null)
const claimableRewardsUserCurrencyBalanceFilter = useMemo(() => ({}), [])
Expand Down Expand Up @@ -88,7 +86,6 @@ export const DashboardHeader = memo(({ tabComponent }: { tabComponent?: React.Re
label: 'dashboard.nfts',
path: '/wallet/nfts',
color: 'pink',
rightElement: translate('common.new'),
hide: !isNftsEnabled,
},
{
Expand All @@ -97,12 +94,7 @@ export const DashboardHeader = memo(({ tabComponent }: { tabComponent?: React.Re
color: 'blue',
},
]
}, [
claimableRewardsUserCurrencyBalance,
isNftsEnabled,
portfolioTotalUserCurrencyBalance,
translate,
])
}, [claimableRewardsUserCurrencyBalance, isNftsEnabled, portfolioTotalUserCurrencyBalance])

const renderNavItems = useMemo(() => {
return NavItems.filter(item => !item.hide).map(navItem => (
Expand Down

0 comments on commit 341c1ed

Please sign in to comment.