diff --git a/src/background/services/featureFlags/models.ts b/src/background/services/featureFlags/models.ts index dcd55b7f..c9982084 100644 --- a/src/background/services/featureFlags/models.ts +++ b/src/background/services/featureFlags/models.ts @@ -44,7 +44,6 @@ export enum FeatureGates { BLOCKAID_DAPP_SCAN_WARNING = 'blockaid-dapp-scan-warning', BLOCKAID_TRANSACTION_SCAN = 'blockaid-transaction-scan', BLOCKAID_JSONRPC_SCAN = 'blockaid-jsonrpc-scan', - HALLIDAY_BUY_FLOW = 'halliday-buy-flow', HALLIDAY_BRIDGE_BANNER = 'halliday-bridge-banner', } @@ -97,7 +96,6 @@ export const DISABLED_FLAG_VALUES: FeatureFlags = { [FeatureGates.BLOCKAID_TRANSACTION_SCAN]: false, [FeatureGates.BLOCKAID_JSONRPC_SCAN]: false, [FeatureGates.HALLIDAY_BRIDGE_BANNER]: false, - [FeatureGates.HALLIDAY_BUY_FLOW]: false, }; // Default flags are used when posthog is not available @@ -148,7 +146,6 @@ export const DEFAULT_FLAGS: FeatureFlags = { [FeatureGates.BLOCKAID_TRANSACTION_SCAN]: true, [FeatureGates.BLOCKAID_JSONRPC_SCAN]: true, [FeatureGates.HALLIDAY_BRIDGE_BANNER]: true, - [FeatureGates.HALLIDAY_BUY_FLOW]: true, }; export enum FeatureFlagEvents { diff --git a/src/components/common/HallidayBanner.tsx b/src/components/common/HallidayBanner.tsx index ecf7f7a1..8bb2ce99 100644 --- a/src/components/common/HallidayBanner.tsx +++ b/src/components/common/HallidayBanner.tsx @@ -61,7 +61,7 @@ export const HallidayBanner = () => { diff --git a/src/components/common/fab/FAB.tsx b/src/components/common/fab/FAB.tsx index 2e217565..bcda2786 100644 --- a/src/components/common/fab/FAB.tsx +++ b/src/components/common/fab/FAB.tsx @@ -26,8 +26,6 @@ import { useIsFunctionAvailable, } from '@src/hooks/useIsFunctionAvailable'; import { useAnalyticsContext } from '@src/contexts/AnalyticsProvider'; -import { useFeatureFlagContext } from '@src/contexts/FeatureFlagsProvider'; -import { FeatureGates } from '@src/background/services/featureFlags/models'; import { getCoreWebUrl } from '@src/utils/getCoreWebUrl'; import { Flipper } from '../Flipper'; @@ -109,7 +107,6 @@ export function FAB({ isContentScrolling }: { isContentScrolling: boolean }) { const fabRef = useRef(null); const fadeTimer = useRef>(); const [isExpanded, setIsExpanded] = useState(true); - const { isFlagEnabled } = useFeatureFlagContext(); const FABMenuItems = [ { @@ -139,14 +136,8 @@ export function FAB({ isContentScrolling }: { isContentScrolling: boolean }) { text: t('Buy'), name: FunctionNames.BUY, icon: , - onclick: () => { - const hallidayParam = isFlagEnabled(FeatureGates.HALLIDAY_BUY_FLOW) - ? '?halliday=1' - : ''; - const url = `${getCoreWebUrl()}/buy${hallidayParam}`; - - window.open(url, '_blank', 'noreferrer'); - }, + onclick: () => + window.open(`${getCoreWebUrl()}/buy`, '_blank', 'noreferrer'), }, { text: t('Bridge'),