From 6fcd0552d0c0573ab685cbdf9f09cdd2bd3bce17 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 2 Mar 2026 21:55:31 +0100 Subject: [PATCH] chore: remove remaining dragHandleProps from SortableSection --- src/components/Sidebar.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 3913a7b8..7294386b 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -161,10 +161,10 @@ function applyCustomization( function SortableSection({ group, sectionProps }: { group: SectionGroup - sectionProps: Omit + sectionProps: Omit & { entries: VaultEntry[]; collapsed: Record; onToggle: (type: string) => void } }) { - const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({ id: group.type }) + const { attributes, setNodeRef, transform, transition, isDragging } = useSortable({ id: group.type }) const items = sectionProps.entries.filter((e) => e.isA === group.type && !e.archived && !e.trashed) const isCollapsed = sectionProps.collapsed[group.type] ?? true @@ -176,7 +176,6 @@ function SortableSection({ group, sectionProps }: { onSelectNote={sectionProps.onSelectNote} onCreateType={sectionProps.onCreateType} onCreateNewType={sectionProps.onCreateNewType} onContextMenu={sectionProps.onContextMenu} onToggle={() => sectionProps.onToggle(group.type)} - dragHandleProps={listeners} /> )