Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 9, 2024
1 parent 0252bc0 commit c7f11f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/src/modules/ai/ai-daily/daily.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { Queries } from "@renderer/queries"
import { useEntry } from "@renderer/store/entry"
import { useFeedById } from "@renderer/store/feed"
import { m, useAnimationControls } from "framer-motion"
import type { Components } from "hast-util-to-jsx-runtime"
import { useEffect, useState } from "react"

import { useParseDailyDate } from "./hooks"
Expand Down Expand Up @@ -243,7 +244,8 @@ export const DailyReportModalContent: Component<DailyReportContentProps> = ({
)
}

const RelatedEntryLink = (props: LinkProps) => {
// @ts-expect-error
const RelatedEntryLink: Components["a"] = (props: LinkProps) => {
const { href, children } = props
const entryId = isBizId(href) ? href : null

Expand Down

0 comments on commit c7f11f9

Please sign in to comment.