-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update notice block to use
useSelect
- Loading branch information
Showing
3 changed files
with
59 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...block-directory/src/components/downloadable-block-notice/test/__snapshots__/index.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DownloadableBlockNotice Rendering should return something when there are error notices 1`] = ` | ||
<Notice | ||
className="block-directory-downloadable-block-notice" | ||
isDismissible={false} | ||
status="error" | ||
> | ||
<div | ||
className="block-directory-downloadable-block-notice__content" | ||
> | ||
Plugin not found. | ||
</div> | ||
<ForwardRef(Button) | ||
isPrimary={true} | ||
isSmall={true} | ||
onClick={[Function]} | ||
> | ||
Retry | ||
</ForwardRef(Button)> | ||
</Notice> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters