Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve post-onboarding: Swap performance cards on the Dashboard page #2564

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions js/src/dashboard/summary-section/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,24 +111,21 @@
return (
<>
<SummaryCard
title={ __(
'Performance (Free Listing)',
'google-listings-and-ads'
) }
title={ __( 'Google Ads', 'google-listings-and-ads' ) }
>
<FreePerformanceCard />
{ adsSetupComplete ? (
<PaidPerformanceCard />
) : (
<PaidCampaignPromotionCard />

Check warning on line 119 in js/src/dashboard/summary-section/index.js

View check run for this annotation

Codecov / codecov/patch

js/src/dashboard/summary-section/index.js#L119

Added line #L119 was not covered by tests
) }
</SummaryCard>
<SummaryCard
title={ __(
'Performance (Paid Campaigns)',
'Free Listings (Limited Visibility)',
'google-listings-and-ads'
) }
>
{ adsSetupComplete ? (
<PaidPerformanceCard />
) : (
<PaidCampaignPromotionCard />
) }
<FreePerformanceCard />
</SummaryCard>
</>
);
Expand Down