From ad4b25270ecdfd4ca7ce74251e8e200cac6251d1 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Tue, 29 Apr 2025 22:21:09 +0800 Subject: [PATCH] chore: fix type check --- .../src/components/ui/modal/stacked/modal-stack.mobile.tsx | 2 ++ packages/internal/components/src/ui/icon/SiteIcon.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/desktop/layer/renderer/src/components/ui/modal/stacked/modal-stack.mobile.tsx b/apps/desktop/layer/renderer/src/components/ui/modal/stacked/modal-stack.mobile.tsx index f5edc948c..a62ee46a2 100644 --- a/apps/desktop/layer/renderer/src/components/ui/modal/stacked/modal-stack.mobile.tsx +++ b/apps/desktop/layer/renderer/src/components/ui/modal/stacked/modal-stack.mobile.tsx @@ -78,10 +78,12 @@ const ModalToSheet = (props: ModalProps & { index: number; id: string }) => { [close, id, props.index, setStack], ) const modalContentRef = useRef(null) + const modalElementRef = useRef(null) const ModalContextProps = useMemo( () => ({ ...ModalProps, ref: modalContentRef, + modalElementRef, }), [ModalProps], ) diff --git a/packages/internal/components/src/ui/icon/SiteIcon.tsx b/packages/internal/components/src/ui/icon/SiteIcon.tsx index 09175e12d..ff2bb0668 100644 --- a/packages/internal/components/src/ui/icon/SiteIcon.tsx +++ b/packages/internal/components/src/ui/icon/SiteIcon.tsx @@ -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 {