From f053b8118592a6d49ad0ef4577fd839ed5ef30fc Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Fri, 10 Jan 2025 16:52:30 +0000 Subject: [PATCH] Remove early access tier banner (#98221) --- .../agency-tier/early-access-banner/index.tsx | 34 ------------------- .../primary/agency-tier-overview/index.tsx | 3 -- 2 files changed, 37 deletions(-) delete mode 100644 client/a8c-for-agencies/sections/agency-tier/early-access-banner/index.tsx diff --git a/client/a8c-for-agencies/sections/agency-tier/early-access-banner/index.tsx b/client/a8c-for-agencies/sections/agency-tier/early-access-banner/index.tsx deleted file mode 100644 index f9b62d65732ab..0000000000000 --- a/client/a8c-for-agencies/sections/agency-tier/early-access-banner/index.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { useTranslate } from 'i18n-calypso'; -import LayoutBanner from 'calypso/a8c-for-agencies/components/layout/banner'; -import { useDispatch, useSelector } from 'calypso/state'; -import { recordTracksEvent } from 'calypso/state/analytics/actions'; -import { savePreference } from 'calypso/state/preferences/actions'; -import { getPreference } from 'calypso/state/preferences/selectors'; - -const EARLY_ACCESS_BANNER_DISMISSED = 'a4a-agency-tier-early-access-banner-dismissed'; - -export default function EarlyAccessBanner() { - const translate = useTranslate(); - const dispatch = useDispatch(); - - const bannerDismissed = useSelector( ( state ) => - getPreference( state, EARLY_ACCESS_BANNER_DISMISSED ) - ); - - const handleDismiss = () => { - dispatch( savePreference( EARLY_ACCESS_BANNER_DISMISSED, true ) ); - dispatch( recordTracksEvent( 'calypso_a4a_agency_tier_early_access_banner_dismiss_click' ) ); - }; - - if ( bannerDismissed ) { - return null; - } - - return ( - - { translate( - "You've been granted early access to our new Agency Tier experience! While the official launch of our tiers is set for January 2025, you have the opportunity to explore and progress on your tier today." - ) } - - ); -} diff --git a/client/a8c-for-agencies/sections/agency-tier/primary/agency-tier-overview/index.tsx b/client/a8c-for-agencies/sections/agency-tier/primary/agency-tier-overview/index.tsx index 691adbfa66c8d..c69753225353a 100644 --- a/client/a8c-for-agencies/sections/agency-tier/primary/agency-tier-overview/index.tsx +++ b/client/a8c-for-agencies/sections/agency-tier/primary/agency-tier-overview/index.tsx @@ -14,7 +14,6 @@ import { useSelector, useDispatch } from 'calypso/state'; import { getActiveAgency } from 'calypso/state/a8c-for-agencies/agency/selectors'; import { recordTracksEvent } from 'calypso/state/analytics/actions'; import DownloadBadges from '../../download-badges'; -import EarlyAccessBanner from '../../early-access-banner'; import getAgencyTierInfo from '../../lib/get-agency-tier-info'; import getTierBenefits from '../../lib/get-tier-benefits'; import { AgencyTier } from '../../types'; @@ -58,8 +57,6 @@ export default function AgencyTierOverview() { - - { currentAgencyTierInfo && (