Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Add noticeList to readme
  • Loading branch information
mirka committed Mar 15, 2023
commit 0483ac2dcc2d6291441edeae7bf9a72fc68acf61
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`withNotices` is a React [higher-order component](https://facebook.github.io/react/docs/higher-order-components.html) used typically in adding the ability to post notice messages within the original component.

Wrapping the original component with `withNotices` encapsulates the component with the additional props `noticeOperations` and `noticeUI`.
Wrapping the original component with `withNotices` encapsulates the component with the additional props `noticeOperations`, `noticeUI`, and `noticeList`.

**noticeOperations**
Contains a number of useful functions to add notices to your site.
Expand Down Expand Up @@ -34,6 +34,9 @@ _Parameters_
<a name="noticeUi" href="#noticeUi">#</a>**noticeUi**
The rendered `NoticeList`.

<a name="noticeList" href="#noticeList">#</a>**noticeList**
The array of notice objects to be displayed.

## Usage

```jsx
Expand Down