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], )