Skip to content

Commit 22044fa

Browse files
authored
Merge pull request #3772 from Parsely/dependabot/npm_and_yarn/wordpress/data-10.33.0
2 parents b8687dc + 3473899 commit 22044fa

File tree

3 files changed

+24
-29
lines changed

3 files changed

+24
-29
lines changed

package-lock.json

Lines changed: 20 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@wordpress/components": "^30.5.0",
6262
"@wordpress/compose": "^7.33.0",
6363
"@wordpress/core-data": "^7.32.0",
64-
"@wordpress/data": "^10.32.0",
64+
"@wordpress/data": "^10.33.0",
6565
"@wordpress/date": "^5.33.0",
6666
"@wordpress/e2e-test-utils-playwright": "^1.33.0",
6767
"@wordpress/edit-post": "^8.32.0",

src/content-helper/common/components/snackbar-notices/component.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { MouseEventHandler } from 'react';
99
import { SnackbarList } from '@wordpress/components';
1010
import { useDispatch, useSelect } from '@wordpress/data';
1111
import { store as noticesStore } from '@wordpress/notices';
12+
import { WPNotice } from '@wordpress/notices/build-types/store/selectors';
1213

1314
interface SnackbarNoticesProps {
1415
className?: string; // Additional class name to be added to the base class.
@@ -27,8 +28,8 @@ export const SnackbarNotices = ( { className }: SnackbarNoticesProps ): JSX.Elem
2728
const notices = useSelect(
2829
( select ) => select( noticesStore )
2930
.getNotices()
30-
.filter( ( notice ) => notice.type === 'snackbar' )
31-
.map( ( notice ) => ( {
31+
.filter( ( notice: WPNotice ) => notice.type === 'snackbar' )
32+
.map( ( notice: WPNotice ) => ( {
3233
...notice,
3334
actions: notice.actions?.map( ( action ) => ( {
3435
...action,

0 commit comments

Comments
 (0)