fix(mobile): can not mark view as read (#2909)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user