Remove unnecessary wrapper for toggle sidebar panel in form editor

[MAILPOET-5714]
This commit is contained in:
Rostislav Wolny
2023-12-14 11:47:38 +01:00
committed by Aschepikov
parent aa74dfc0e4
commit d1a88b902f

View File

@@ -9,9 +9,7 @@ import { TagsPanel } from './tags-panel';
import { storeName } from '../../store';
export function FormSettings(): JSX.Element {
const dispatchResult = useDispatch(storeName);
const toggleSidebarPanel: (t1: string, ...ts: []) => void =
void dispatchResult.toggleSidebarPanel;
const { toggleSidebarPanel } = useDispatch(storeName);
const openedPanels = useSelect(
(select) => select(storeName).getSidebarOpenedPanels(),
[],