Skip to content

Commit

Permalink
Remove code for Black Friday 2024 My Home card (#97321)
Browse files Browse the repository at this point in the history
* Remove Black Friday 2024 code and assets

* Remove BF2024-specific interval toggle hide
  • Loading branch information
claudiucelfilip authored Dec 11, 2024
1 parent 4782432 commit ec05da9
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 87 deletions.
Binary file not shown.
1 change: 0 additions & 1 deletion client/my-sites/customer-home/cards/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const SECTION_BLOGGING_PROMPT = 'home-section-blogging-prompt';
export const SECTION_BLOGANUARY_BLOGGING_PROMPT = 'home-section-bloganuary-blogging-prompt';
export const SECTION_MANAGE_SITE = 'home-section-manage-site';
export const TASK_AFFILIATES = 'home-task-affiliates';
export const TASK_BLACK_FRIDAY_2024 = 'home-task-black-friday-2024';
export const TASK_CONNECT_ACCOUNTS = 'home-task-connect-accounts';
export const TASK_EARN_FEATURES = 'home-task-earn-features';
export const TASK_GO_MOBILE_ANDROID = 'home-task-go-mobile-android';
Expand Down

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions client/my-sites/customer-home/locations/card-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
SECTION_BLOGANUARY_BLOGGING_PROMPT,
SECTION_LEARN_GROW,
TASK_AFFILIATES,
TASK_BLACK_FRIDAY_2024,
TASK_CONNECT_ACCOUNTS,
TASK_DOMAIN_UPSELL,
TASK_EARN_FEATURES,
Expand Down Expand Up @@ -73,7 +72,6 @@ import ReaderFirstPosts from 'calypso/my-sites/customer-home/cards/notices/reade
import SiteLaunchSellerUpsell from 'calypso/my-sites/customer-home/cards/notices/site-launch-seller-upsell';
import StagingSiteNotice from 'calypso/my-sites/customer-home/cards/notices/staging-site';
import Affiliates from 'calypso/my-sites/customer-home/cards/tasks/affiliates';
import BlackFriday2024 from 'calypso/my-sites/customer-home/cards/tasks/black-friday-2024';
import ConnectAccounts from 'calypso/my-sites/customer-home/cards/tasks/connect-accounts';
import DomainUpsell from 'calypso/my-sites/customer-home/cards/tasks/domain-upsell';
import EarnFeatures from 'calypso/my-sites/customer-home/cards/tasks/earn-features';
Expand Down Expand Up @@ -112,7 +110,6 @@ const PRIMARY_CARD_COMPONENTS: CardComponentMap = {
[ NOTICE_SITE_LAUNCH_SELLER_UPSELL ]: SiteLaunchSellerUpsell,
[ NOTICE_STAGING_SITE ]: StagingSiteNotice,
[ TASK_AFFILIATES ]: Affiliates,
[ TASK_BLACK_FRIDAY_2024 ]: BlackFriday2024,
[ TASK_CONNECT_ACCOUNTS ]: ConnectAccounts,
[ TASK_DOMAIN_UPSELL ]: DomainUpsell,
[ TASK_EARN_FEATURES ]: EarnFeatures,
Expand Down
8 changes: 3 additions & 5 deletions client/my-sites/plans/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,9 @@ class PlansComponent extends Component {
// The Jetpack mobile app wants to display a specific selection of plans
const plansIntent = this.props.jetpackAppPlans ? 'plans-jetpack-app' : null;
const hidePlanTypeSelector =
( this.props.domainAndPlanPackage &&
( ! this.props.isDomainUpsell ||
( this.props.isDomainUpsell && currentPlanIntervalType === 'monthly' ) ) ) ||
// TODO: Remove after 1733443200000.
( this.props.coupon === 'BF25' && Date.now() < new Date( 1733443200000 ) );
this.props.domainAndPlanPackage &&
( ! this.props.isDomainUpsell ||
( this.props.isDomainUpsell && currentPlanIntervalType === 'monthly' ) );

return (
<PlansFeaturesMain
Expand Down

0 comments on commit ec05da9

Please sign in to comment.