chore: remove tokensNetworkFilter feature flag (#4679)
This commit is contained in:
parent
6f2d6e31c9
commit
dbb62b613c
@ -4,7 +4,6 @@ import { NftVariant, useNftFlag } from 'featureFlags/flags/nft'
|
||||
import { RedesignVariant, useRedesignFlag } from 'featureFlags/flags/redesign'
|
||||
import { TokensVariant, useTokensFlag } from 'featureFlags/flags/tokens'
|
||||
import { TokenSafetyVariant, useTokenSafetyFlag } from 'featureFlags/flags/tokenSafety'
|
||||
import { TokensNetworkFilterVariant, useTokensNetworkFilterFlag } from 'featureFlags/flags/tokensNetworkFilter'
|
||||
import { TraceJsonRpcVariant, useTraceJsonRpcFlag } from 'featureFlags/flags/traceJsonRpc'
|
||||
import { useAtomValue, useUpdateAtom } from 'jotai/utils'
|
||||
import { Children, PropsWithChildren, ReactElement, ReactNode, useCallback, useState } from 'react'
|
||||
@ -226,12 +225,6 @@ export default function FeatureFlagModal() {
|
||||
featureFlag={FeatureFlag.tokens}
|
||||
label="Tokens"
|
||||
/>
|
||||
<FeatureFlagOption
|
||||
variant={TokensNetworkFilterVariant}
|
||||
value={useTokensNetworkFilterFlag()}
|
||||
featureFlag={FeatureFlag.tokensNetworkFilter}
|
||||
label="Tokens Network Filter"
|
||||
/>
|
||||
<FeatureFlagOption
|
||||
variant={TokenSafetyVariant}
|
||||
value={useTokenSafetyFlag()}
|
||||
|
@ -3,7 +3,6 @@ export enum FeatureFlag {
|
||||
nft = 'nfts',
|
||||
redesign = 'redesign',
|
||||
tokens = 'tokens',
|
||||
tokensNetworkFilter = 'tokensNetworkFilter',
|
||||
tokenSafety = 'tokenSafety',
|
||||
traceJsonRpc = 'traceJsonRpc',
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
import { BaseVariant, FeatureFlag, useBaseFlag } from '../index'
|
||||
|
||||
export function useTokensNetworkFilterFlag(): BaseVariant {
|
||||
return useBaseFlag(FeatureFlag.tokensNetworkFilter)
|
||||
}
|
||||
|
||||
export { BaseVariant as TokensNetworkFilterVariant }
|
@ -8,7 +8,6 @@ import NetworkFilter from 'components/Tokens/TokenTable/NetworkFilter'
|
||||
import SearchBar from 'components/Tokens/TokenTable/SearchBar'
|
||||
import TimeSelector from 'components/Tokens/TokenTable/TimeSelector'
|
||||
import TokenTable, { LoadingTokenTable } from 'components/Tokens/TokenTable/TokenTable'
|
||||
import { TokensNetworkFilterVariant, useTokensNetworkFilterFlag } from 'featureFlags/flags/tokensNetworkFilter'
|
||||
import { useResetAtom } from 'jotai/utils'
|
||||
import { useEffect } from 'react'
|
||||
import { useLocation } from 'react-router-dom'
|
||||
@ -68,7 +67,6 @@ const FiltersWrapper = styled.div`
|
||||
`
|
||||
|
||||
const Tokens = () => {
|
||||
const tokensNetworkFilterFlag = useTokensNetworkFilterFlag()
|
||||
const resetFilterString = useResetAtom(filterStringAtom)
|
||||
const location = useLocation()
|
||||
useEffect(() => {
|
||||
@ -86,15 +84,13 @@ const Tokens = () => {
|
||||
<FiltersWrapper>
|
||||
<FiltersContainer>
|
||||
<FavoriteButton />
|
||||
{tokensNetworkFilterFlag === TokensNetworkFilterVariant.Enabled && <NetworkFilter />}
|
||||
|
||||
<NetworkFilter />
|
||||
<TimeSelector />
|
||||
</FiltersContainer>
|
||||
<SearchContainer>
|
||||
<SearchBar />
|
||||
</SearchContainer>
|
||||
</FiltersWrapper>
|
||||
|
||||
<TokenTableContainer>
|
||||
<TokenTable />
|
||||
</TokenTableContainer>
|
||||
@ -104,8 +100,6 @@ const Tokens = () => {
|
||||
}
|
||||
|
||||
export const LoadingTokens = () => {
|
||||
const tokensNetworkFilterFlag = useTokensNetworkFilterFlag()
|
||||
|
||||
return (
|
||||
<ExploreContainer>
|
||||
<TitleContainer>
|
||||
@ -116,7 +110,7 @@ export const LoadingTokens = () => {
|
||||
<FiltersWrapper>
|
||||
<FiltersContainer>
|
||||
<FavoriteButton />
|
||||
{tokensNetworkFilterFlag === TokensNetworkFilterVariant.Enabled && <NetworkFilter />}
|
||||
<NetworkFilter />
|
||||
<TimeSelector />
|
||||
</FiltersContainer>
|
||||
<SearchContainer>
|
||||
|
Loading…
Reference in New Issue
Block a user