From f2ad2b911e7079399bdb12baf377e960d09b4a5b Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Fri, 11 Jul 2025 18:52:38 +0800 Subject: [PATCH] fix: types --- .../src/modules/entry-column/layouts/EntryItemWrapper.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx index f38421e47..833aaab2c 100644 --- a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx +++ b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx @@ -6,7 +6,7 @@ import { useEntry } from "@follow/store/entry/hooks" import { unreadSyncService } from "@follow/store/unread/store" import { EventBus } from "@follow/utils/event-bus" import { cn } from "@follow/utils/utils" -import type { FC, PropsWithChildren } from "react" +import type { FC, MouseEvent, MouseEventHandler, PropsWithChildren, TouchEvent } from "react" import { useCallback, useMemo, useState } from "react" import { useTranslation } from "react-i18next" import { NavLink } from "react-router" @@ -85,7 +85,7 @@ export const EntryItemWrapper: FC< }) }, [entry?.id]) const handleClick = useCallback( - (e) => { + (e: TouchEvent | MouseEvent) => { e.preventDefault() e.stopPropagation() @@ -108,7 +108,7 @@ export const EntryItemWrapper: FC< }, [asRead, entry?.id, entry?.feedId, navigate], ) - const handleDoubleClick: React.MouseEventHandler = useCallback( + const handleDoubleClick: MouseEventHandler = useCallback( () => entry?.url && window.open(entry.url, "_blank"), [entry?.url], )