Fix eslint warnings: Post not found and useSelect has a missing dependency
MAILPOET-6316
This commit is contained in:
committed by
Jan Lysý
parent
f9458c2b7f
commit
3386f9f4f1
@@ -10,7 +10,8 @@ import {
|
|||||||
} from '@wordpress/editor';
|
} from '@wordpress/editor';
|
||||||
import { useMemo } from '@wordpress/element';
|
import { useMemo } from '@wordpress/element';
|
||||||
import { SlotFillProvider, Spinner } from '@wordpress/components';
|
import { SlotFillProvider, Spinner } from '@wordpress/components';
|
||||||
import { Post, store as coreStore } from '@wordpress/core-data';
|
import { store as coreStore } from '@wordpress/core-data';
|
||||||
|
import { Post } from '@wordpress/core-data/build-types/entity-types/post';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WordPress private dependencies
|
* WordPress private dependencies
|
||||||
|
@@ -9,7 +9,7 @@ export function EditorSnackbars( { context = 'email-editor' } ) {
|
|||||||
( select ) => ( {
|
( select ) => ( {
|
||||||
notices: select( noticesStore ).getNotices( context ),
|
notices: select( noticesStore ).getNotices( context ),
|
||||||
} ),
|
} ),
|
||||||
[]
|
[ context ]
|
||||||
);
|
);
|
||||||
|
|
||||||
const { removeNotice } = useDispatch( noticesStore );
|
const { removeNotice } = useDispatch( noticesStore );
|
||||||
|
Reference in New Issue
Block a user