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

Commit

Permalink
Update import for StoreNoticesContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
opr committed Nov 17, 2022
1 parent c809d01 commit 5a1e6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/internal-developers/block-client-apis/notices.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The below example will show all notices with type `default` that are in the `wc/
On the Cart Block, a `StoreNoticesContainer` is already rendered with the `wc/cart` context, and on the Checkout Block, a `StoreNoticesContainer` is already rendered with the `wc/checkout` context. To display errors from other contexts, you can use the `StoreNoticesContainer` component with context passed as a prop.

```jsx
import { StoreNoticesContainer } from '@woocommerce/base-components/store-notices-container';
import { StoreNoticesContainer } from '@woocommerce/blocks-checkout';

const PaymentErrors = () => {
return <StoreNoticesContainer context="wc/payment" />;
Expand Down

0 comments on commit 5a1e6b9

Please sign in to comment.