🎨 Improved changeability of wrappers with new wrapper content component

This commit is contained in:
Meierschlumpf
2022-12-19 18:03:52 +01:00
parent 8f7a3111ca
commit 383a7fa04b
6 changed files with 91 additions and 117 deletions

View File

@@ -17,7 +17,7 @@ import { useEditModeStore } from '../../Views/useEditModeStore';
import { initializeGridstack } from './init-gridstack';
interface UseGristackReturnType {
items: AppType[];
apps: AppType[];
widgets: IWidget<string, any>[];
refs: {
wrapper: RefObject<HTMLDivElement>;
@@ -211,7 +211,7 @@ export const useGridstack = (
}, [items.length, wrapperRef.current, (widgets ?? []).length]);
return {
items,
apps: items,
widgets: widgets ?? [],
refs: {
items: itemRefs,