Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Switch to NoticeBanner component inside Store Notices Block placeholder #11920

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions assets/js/blocks/store-notices/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { useBlockProps } from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';
import { Notice } from '@wordpress/components';
import NoticeBanner from '@woocommerce/base-components/notice-banner';

/**
* Internal dependencies
Expand All @@ -17,12 +17,12 @@ const Edit = (): JSX.Element => {

return (
<div { ...blockProps }>
<Notice status="info" isDismissible={ false }>
<NoticeBanner status="info" isDismissible={ false }>
{ __(
'Notices added by WooCommerce or extensions will show up here.',
'woo-gutenberg-products-block'
) }
</Notice>
</NoticeBanner>
</div>
);
};
Expand Down