From e0e791d9b4570ec00dd9a4d149482f437c6911dd Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 15 Oct 2025 18:49:06 +0300 Subject: [PATCH] refactor(collections): delete unnecessary type parameter --- apps/client/src/widgets/collections/NoteList.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/client/src/widgets/collections/NoteList.tsx b/apps/client/src/widgets/collections/NoteList.tsx index e721d3eb9..1f35cfb40 100644 --- a/apps/client/src/widgets/collections/NoteList.tsx +++ b/apps/client/src/widgets/collections/NoteList.tsx @@ -13,7 +13,7 @@ import { subscribeToMessages, unsubscribeToMessage as unsubscribeFromMessage } f import { WebSocketMessage } from "@triliumnext/commons"; import froca from "../../services/froca"; -interface NoteListProps { +interface NoteListProps { note: FNote | null | undefined; notePath: string | null | undefined; highlightedTokens?: string[] | null; @@ -23,17 +23,17 @@ interface NoteListProps { ntxId: string | null | undefined; } -export default function NoteList(props: Pick, "displayOnlyCollections">) { +export default function NoteList(props: Pick) { const { note, noteContext, notePath, ntxId } = useNoteContext(); const isEnabled = noteContext?.hasNoteList(); return } -export function SearchNoteList(props: Omit, "isEnabled">) { +export function SearchNoteList(props: Omit) { return } -function CustomNoteList({ note, isEnabled: shouldEnable, notePath, highlightedTokens, displayOnlyCollections, ntxId }: NoteListProps) { +function CustomNoteList({ note, isEnabled: shouldEnable, notePath, highlightedTokens, displayOnlyCollections, ntxId }: NoteListProps) { const widgetRef = useRef(null); const viewType = useNoteViewType(note); const noteIds = useNoteIds(note, viewType, ntxId);