fix: remove duplicate triggerRefresh declaration in note-card
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 30s

Made-with: Cursor
This commit is contained in:
2026-04-26 00:04:04 +02:00
parent 310904e5a3
commit 7718e32e01

View File

@@ -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<any[]>([])