feat: add nft list page v2 feature flag (#5801)
* add nft list page v2 feature flag * add new flag file Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
This commit is contained in:
parent
400666cd0b
commit
889cdf6b66
@ -1,5 +1,6 @@
|
||||
import { BaseVariant, FeatureFlag, featureFlagSettings, useUpdateFlag } from 'featureFlags'
|
||||
import { useFiatOnrampFlag } from 'featureFlags/flags/fiatOnramp'
|
||||
import { NftListV2Variant, useNftListV2Flag } from 'featureFlags/flags/nftListV2'
|
||||
import { Permit2Variant, usePermit2Flag } from 'featureFlags/flags/permit2'
|
||||
import { TraceJsonRpcVariant, useTraceJsonRpcFlag } from 'featureFlags/flags/traceJsonRpc'
|
||||
import { useAtomValue, useUpdateAtom } from 'jotai/utils'
|
||||
@ -215,6 +216,12 @@ export default function FeatureFlagModal() {
|
||||
featureFlag={FeatureFlag.fiatOnramp}
|
||||
label="Fiat on-ramp"
|
||||
/>
|
||||
<FeatureFlagOption
|
||||
variant={NftListV2Variant}
|
||||
value={useNftListV2Flag()}
|
||||
featureFlag={FeatureFlag.nftListV2}
|
||||
label="NFT Listing Page v2"
|
||||
/>
|
||||
<FeatureFlagGroup name="Debug">
|
||||
<FeatureFlagOption
|
||||
variant={TraceJsonRpcVariant}
|
||||
|
@ -2,4 +2,5 @@ export enum FeatureFlag {
|
||||
fiatOnramp = 'fiatOnramp',
|
||||
traceJsonRpc = 'traceJsonRpc',
|
||||
permit2 = 'permit2',
|
||||
nftListV2 = 'nftListV2',
|
||||
}
|
||||
|
7
src/featureFlags/flags/nftListV2.ts
Normal file
7
src/featureFlags/flags/nftListV2.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { BaseVariant, FeatureFlag, useBaseFlag } from '../index'
|
||||
|
||||
export function useNftListV2Flag(): BaseVariant {
|
||||
return useBaseFlag(FeatureFlag.nftListV2)
|
||||
}
|
||||
|
||||
export { BaseVariant as NftListV2Variant }
|
Loading…
Reference in New Issue
Block a user