Skip to content

Commit d6bb789

Browse files
authored
My Jetpack: Remove "Scan" Product Card / Always Show "Protect" (#35142)
* Remove scan product card in favor of protect in all cases * changelog
1 parent 972fa35 commit d6bb789

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

projects/packages/my-jetpack/_inc/components/product-cards-section/index.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import BackupCard from './backup-card';
66
import BoostCard from './boost-card';
77
import CreatorCard from './creator-card';
88
import CrmCard from './crm-card';
9-
import ScanAndProtectCard from './scan-protect-card';
9+
import ProtectCard from './protect-card';
1010
import SearchCard from './search-card';
1111
import SocialCard from './social-card';
1212
import StatsCard from './stats-card';
@@ -24,7 +24,7 @@ const { showJetpackStatsCard = false } = window.myJetpackInitialState?.myJetpack
2424
const ProductCardsSection = () => {
2525
const items = {
2626
backups: BackupCard,
27-
scan: ScanAndProtectCard,
27+
protect: ProtectCard,
2828
antispam: AntiSpamCard,
2929
boost: BoostCard,
3030
search: SearchCard,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
3+
import ProductCard from '../connected-product-card';
4+
5+
const ProtectCard = ( { admin } ) => {
6+
return <ProductCard admin={ admin } slug={ 'protect' } />;
7+
};
8+
9+
ProtectCard.propTypes = {
10+
admin: PropTypes.bool.isRequired,
11+
};
12+
13+
export default ProtectCard;

projects/packages/my-jetpack/_inc/components/product-cards-section/scan-protect-card.jsx

-19
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: changed
3+
4+
Display Jetpack Protect product card for all users.

0 commit comments

Comments
 (0)