• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 5f0674f68b174b16977eb321508710b0b0d5963b

20 Nov 2024 10:43AM UTC coverage: 57.116% (-0.008%) from 57.124%
5f0674f68b174b16977eb321508710b0b0d5963b

push

github

web-flow
Merge pull request #21839 from Yoast/528-dashboard-add-footer-upsell-like-in-the-alert-center

Extract upsell to sidebar-layout.js

7593 of 13667 branches covered (55.56%)

Branch coverage included in aggregate %.

0 of 8 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

13348 of 22997 relevant lines covered (58.04%)

99793.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/js/src/general/components/connected-premium-upsell-list.js
1
import { useSelect } from "@wordpress/data";
2
import { PremiumUpsellList } from "../../shared-admin/components";
3
import { STORE_NAME } from "../constants";
4
import { useSelectGeneralPage } from "../hooks";
5

6
/**
7
 * @returns {JSX.Element|null} The premium upsell list or null if not applicable.
8
 */
NEW
9
export const ConnectedPremiumUpsellList = () => {
×
NEW
10
        const isPremium = useSelectGeneralPage( "selectPreference", [], "isPremium" );
×
NEW
11
        const premiumUpsellConfig = useSelectGeneralPage( "selectUpsellSettingsAsProps" );
×
NEW
12
        const { isPromotionActive } = useSelect( STORE_NAME );
×
NEW
13
        const premiumLinkList = useSelectGeneralPage( "selectLink", [], "https://yoa.st/17h" );
×
14

NEW
15
        if ( isPremium ) {
×
NEW
16
                return null;
×
17
        }
NEW
18
        return <PremiumUpsellList
×
19
                premiumLink={ premiumLinkList }
20
                premiumUpsellConfig={ premiumUpsellConfig }
21
                isPromotionActive={ isPromotionActive }
22
        />;
23
};
24

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc