Remove unnecessary wrapper for toggle sidebar panel in form editor
[MAILPOET-5714]
This commit is contained in:
committed by
Aschepikov
parent
aa74dfc0e4
commit
d1a88b902f
@@ -9,9 +9,7 @@ import { TagsPanel } from './tags-panel';
|
|||||||
import { storeName } from '../../store';
|
import { storeName } from '../../store';
|
||||||
|
|
||||||
export function FormSettings(): JSX.Element {
|
export function FormSettings(): JSX.Element {
|
||||||
const dispatchResult = useDispatch(storeName);
|
const { toggleSidebarPanel } = useDispatch(storeName);
|
||||||
const toggleSidebarPanel: (t1: string, ...ts: []) => void =
|
|
||||||
void dispatchResult.toggleSidebarPanel;
|
|
||||||
const openedPanels = useSelect(
|
const openedPanels = useSelect(
|
||||||
(select) => select(storeName).getSidebarOpenedPanels(),
|
(select) => select(storeName).getSidebarOpenedPanels(),
|
||||||
[],
|
[],
|
||||||
|
Reference in New Issue
Block a user