From ab27ab83b18c72f91103cfcdc1986fbc4bb11a14 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 28 Feb 2025 15:52:45 +0800 Subject: [PATCH] fix(mobile): can not mark view as read (#2909) --- apps/mobile/src/modules/dialogs/MarkAllAsReadDialog.tsx | 2 +- apps/mobile/src/modules/feed-drawer/atoms.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/modules/dialogs/MarkAllAsReadDialog.tsx b/apps/mobile/src/modules/dialogs/MarkAllAsReadDialog.tsx index de723cf11..665be7bd1 100644 --- a/apps/mobile/src/modules/dialogs/MarkAllAsReadDialog.tsx +++ b/apps/mobile/src/modules/dialogs/MarkAllAsReadDialog.tsx @@ -5,7 +5,7 @@ import type { DialogComponent } from "@/src/lib/dialog" import { Dialog } from "@/src/lib/dialog" import { unreadSyncService } from "@/src/store/unread/store" -import { useSelectedView } from "../feed-drawer/atoms" +import { useSelectedView } from "../screen/atoms" export const MarkAllAsReadDialog: DialogComponent = () => { const selectedView = useSelectedView() diff --git a/apps/mobile/src/modules/feed-drawer/atoms.ts b/apps/mobile/src/modules/feed-drawer/atoms.ts index 8be468fdb..ab8bf3294 100644 --- a/apps/mobile/src/modules/feed-drawer/atoms.ts +++ b/apps/mobile/src/modules/feed-drawer/atoms.ts @@ -1,3 +1,4 @@ +/* eslint-disable unused-imports/no-unused-vars */ import { FeedViewType } from "@follow/constants" import { jotaiStore } from "@follow/utils" import { atom, useAtom, useAtomValue, useSetAtom } from "jotai" @@ -108,7 +109,7 @@ export const useEntryListContext = () => { return useContext(EntryListContext) } -export function useSelectedView() { +function useSelectedView() { const selectedTimeLine = useAtomValue(selectedTimelineAtom) const selectedFeed = useAtomValue(selectedFeedAtom)