Skip to content

Commit

Permalink
Merge branch 'feature/2539-show-promo' of https://github.com/woocomme…
Browse files Browse the repository at this point in the history
…rce/google-listings-and-ads into feature/2539-show-promo
  • Loading branch information
kt-12 committed Oct 23, 2024
2 parents 81aba99 + 80016a2 commit 05aecee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Notice } from '@wordpress/components';
import AddPaidCampaignButton from '.~/components/paid-ads/add-paid-campaign-button';
import useMCProductStatistics from '.~/hooks/useMCProductStatistics';
import useAdsCampaigns from '.~/hooks/useAdsCampaigns';
import './index.scss';

const CreateCampaignNotice = () => {
const { hasFinishedResolution, data: products } = useMCProductStatistics();
Expand All @@ -29,7 +30,7 @@ const CreateCampaignNotice = () => {
}

return (

Check warning on line 32 in js/src/product-feed/product-statistics/create-campaign-notice/index.js

View check run for this annotation

Codecov / codecov/patch

js/src/product-feed/product-statistics/create-campaign-notice/index.js#L32

Added line #L32 was not covered by tests
<Notice isDismissible={ false }>
<Notice isDismissible={ false } className="gla-ads-inline-notice">
<section>
<p>
{ __(
Expand All @@ -38,6 +39,7 @@ const CreateCampaignNotice = () => {
) }
</p>
<AddPaidCampaignButton
isSmall={ false }
eventProps={ {
context: 'product-feed-overview-promotion',
} }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.gla-ads-inline-notice {
margin: $grid-unit-20;
border-left: none;
padding: 0.75rem 1rem;

&.is-info {
background-color: #f0f6fc;
}

.components-notice__content p {
margin-top: 0;
}
}

0 comments on commit 05aecee

Please sign in to comment.