diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx index 866ec56537..2d34681666 100644 --- a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx +++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx @@ -148,27 +148,37 @@ function ListNoteCard({ note, parentNote, highlightedTokens, currentLevel, expan ); } -function GridNoteCard({ note, parentNote, highlightedTokens, includeArchived }: { note: FNote, parentNote: FNote, highlightedTokens: string[] | null | undefined, includeArchived: boolean }) { - const titleRef = useRef(null); - const [ noteTitle, setNoteTitle ] = useState(); - const notePath = getNotePath(parentNote, note); +interface GridNoteCardProps { + note: FNote; + parentNote: FNote; + highlightedTokens: string[] | null | undefined; + includeArchived: boolean +} + +function GridNoteCard(props: GridNoteCardProps) { + const notePath = getNotePath(props.parentNote, props.note); return ( -
link.goToLink(e)} +
link.goToLink(e)} >
- - + +
-
);