Use @wordpress/editor store with email editor components
MAILPOET-6303
This commit is contained in:
committed by
Rostislav Wolný
parent
e37997e2e1
commit
f945ea8388
@@ -231,18 +231,6 @@ export function getEmailPostId( state: State ): number {
|
||||
return state.postId;
|
||||
}
|
||||
|
||||
export const isInserterSidebarOpened = createRegistrySelector(
|
||||
( select ) => () =>
|
||||
// @ts-expect-error isInserterOpened is missing in types.
|
||||
select( editorStore ).isInserterOpened() as boolean
|
||||
);
|
||||
|
||||
export const isListviewSidebarOpened = createRegistrySelector(
|
||||
( select ) => () =>
|
||||
// @ts-expect-error isListViewOpened is missing in types.
|
||||
select( editorStore ).isListViewOpened() as boolean
|
||||
);
|
||||
|
||||
export function getSettingsSidebarActiveTab( state: State ): string {
|
||||
return state.settingsSidebar.activeTab;
|
||||
}
|
||||
|
Reference in New Issue
Block a user