From 7718e32e018766dda2a8c53fbb2a6bfb4e467faa Mon Sep 17 00:00:00 2001 From: sepehr Date: Sun, 26 Apr 2026 00:04:04 +0200 Subject: [PATCH] fix: remove duplicate triggerRefresh declaration in note-card Made-with: Cursor --- memento-note/components/note-card.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/memento-note/components/note-card.tsx b/memento-note/components/note-card.tsx index 126ea2b..fa2ec13 100644 --- a/memento-note/components/note-card.tsx +++ b/memento-note/components/note-card.tsx @@ -25,7 +25,6 @@ import { useState, useEffect, useTransition, useOptimistic, memo } from 'react' import { useSession } from 'next-auth/react' import { useRouter, useSearchParams } from 'next/navigation' import { deleteNote, toggleArchive, togglePin, updateColor, updateNote, updateSize, getNoteAllUsers, leaveSharedNote, removeFusedBadge, createNote } from '@/app/actions/notes' -import { useNoteRefreshOptional } from '@/context/NoteRefreshContext' import { cn } from '@/lib/utils' import { formatDistanceToNow, Locale } from 'date-fns' import { enUS } from 'date-fns/locale/en-US' @@ -166,7 +165,6 @@ export const NoteCard = memo(function NoteCard({ const [, startTransition] = useTransition() const [isDeleting, setIsDeleting] = useState(false) const [isHidden, setIsHidden] = useState(false) - const { triggerRefresh } = useNoteRefreshOptional() const [showDeleteDialog, setShowDeleteDialog] = useState(false) const [showCollaboratorDialog, setShowCollaboratorDialog] = useState(false) const [collaborators, setCollaborators] = useState([])