refactor: 💨

This commit is contained in:
codytseng
2025-07-07 22:34:59 +08:00
parent c729c20771
commit 8c5cc1041b
46 changed files with 1008 additions and 879 deletions

View File

@@ -1,6 +1,5 @@
import Image from '@/components/Image'
import { useFetchEvent } from '@/hooks'
import { isSupportedKind } from '@/lib/event'
import { toNote } from '@/lib/link'
import { tagNameEquals } from '@/lib/tag'
import { cn } from '@/lib/utils'
@@ -54,7 +53,7 @@ export function ReactionNotification({
return notification.content
}, [notification])
if (!event || !eventId || !isSupportedKind(event.kind)) {
if (!event || !eventId) {
return null
}