diff --git a/app/components/DocumentListItem.tsx b/app/components/DocumentListItem.tsx index 6a17b5e50b..39c4e5f21b 100644 --- a/app/components/DocumentListItem.tsx +++ b/app/components/DocumentListItem.tsx @@ -89,6 +89,7 @@ function DocumentListItem( pathname: documentPath(document), state: { title: document.titleWithDefault, + sidebarContext: document.collection ? "collections" : undefined, }, }} {...rest} diff --git a/app/components/Sidebar/components/Collections.tsx b/app/components/Sidebar/components/Collections.tsx index 7ee0194200..5bb998e378 100644 --- a/app/components/Sidebar/components/Collections.tsx +++ b/app/components/Sidebar/components/Collections.tsx @@ -16,6 +16,7 @@ import Header from "./Header"; import PlaceholderCollections from "./PlaceholderCollections"; import Relative from "./Relative"; import SidebarAction from "./SidebarAction"; +import SidebarContext from "./SidebarContext"; import { DragObject } from "./SidebarLink"; function Collections() { @@ -49,38 +50,40 @@ function Collections() { }); return ( - -
- - } - heading={ - isDraggingAnyCollection ? ( - + +
+ + } + heading={ + isDraggingAnyCollection ? ( + + ) : undefined + } + renderError={(props) => } + renderItem={(item: Collection, index) => ( + - ) : undefined - } - renderError={(props) => } - renderItem={(item: Collection, index) => ( - - )} - /> - - -
-
+ )} + /> + +
+
+
+ ); }