Move InserterSidebar state from email editor store to @wordpress/editor store
MAILPOET-6303
This commit is contained in:
committed by
Rostislav Wolný
parent
990d82ef6c
commit
ef009d0400
@@ -231,9 +231,11 @@ export function getEmailPostId( state: State ): number {
|
||||
return state.postId;
|
||||
}
|
||||
|
||||
export function isInserterSidebarOpened( state: State ): boolean {
|
||||
return state.inserterSidebar.isOpened;
|
||||
}
|
||||
export const isInserterSidebarOpened = createRegistrySelector(
|
||||
( select ) => () =>
|
||||
// @ts-expect-error isInserterOpened is missing in types.
|
||||
select( editorStore ).isInserterOpened() as boolean
|
||||
);
|
||||
|
||||
export function isListviewSidebarOpened( state: State ): boolean {
|
||||
return state.listviewSidebar.isOpened;
|
||||
|
Reference in New Issue
Block a user