fix: remove duplicate triggerRefresh declaration in note-card
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 30s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 30s
Made-with: Cursor
This commit is contained in:
@@ -25,7 +25,6 @@ import { useState, useEffect, useTransition, useOptimistic, memo } from 'react'
|
|||||||
import { useSession } from 'next-auth/react'
|
import { useSession } from 'next-auth/react'
|
||||||
import { useRouter, useSearchParams } from 'next/navigation'
|
import { useRouter, useSearchParams } from 'next/navigation'
|
||||||
import { deleteNote, toggleArchive, togglePin, updateColor, updateNote, updateSize, getNoteAllUsers, leaveSharedNote, removeFusedBadge, createNote } from '@/app/actions/notes'
|
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 { cn } from '@/lib/utils'
|
||||||
import { formatDistanceToNow, Locale } from 'date-fns'
|
import { formatDistanceToNow, Locale } from 'date-fns'
|
||||||
import { enUS } from 'date-fns/locale/en-US'
|
import { enUS } from 'date-fns/locale/en-US'
|
||||||
@@ -166,7 +165,6 @@ export const NoteCard = memo(function NoteCard({
|
|||||||
const [, startTransition] = useTransition()
|
const [, startTransition] = useTransition()
|
||||||
const [isDeleting, setIsDeleting] = useState(false)
|
const [isDeleting, setIsDeleting] = useState(false)
|
||||||
const [isHidden, setIsHidden] = useState(false)
|
const [isHidden, setIsHidden] = useState(false)
|
||||||
const { triggerRefresh } = useNoteRefreshOptional()
|
|
||||||
const [showDeleteDialog, setShowDeleteDialog] = useState(false)
|
const [showDeleteDialog, setShowDeleteDialog] = useState(false)
|
||||||
const [showCollaboratorDialog, setShowCollaboratorDialog] = useState(false)
|
const [showCollaboratorDialog, setShowCollaboratorDialog] = useState(false)
|
||||||
const [collaborators, setCollaborators] = useState<any[]>([])
|
const [collaborators, setCollaborators] = useState<any[]>([])
|
||||||
|
|||||||
Reference in New Issue
Block a user