chore: fix type check

This commit is contained in:
Stephen Zhou
2025-04-29 22:21:09 +08:00
parent 5aed9a7e4c
commit ad4b25270e
2 changed files with 3 additions and 1 deletions
@@ -78,10 +78,12 @@ const ModalToSheet = (props: ModalProps & { index: number; id: string }) => {
[close, id, props.index, setStack],
)
const modalContentRef = useRef<HTMLDivElement>(null)
const modalElementRef = useRef<HTMLDivElement>(null)
const ModalContextProps = useMemo<CurrentModalContentProps>(
() => ({
...ModalProps,
ref: modalContentRef,
modalElementRef,
}),
[ModalProps],
)
@@ -1,8 +1,8 @@
import { getFeedIconSrc } from "@follow/components/utils/icon"
import { cn } from "@follow/utils/utils"
import { m, useAnimationControls } from "motion/react"
import { useRef } from "react"
import { getFeedIconSrc } from "../../utils/icon"
import { PlatformIcon } from "../platform-icon"
interface SiteIconProps {