Files
Folo/apps/mobile/src/modules/entry-list/EntryListContext.tsx
T
Innei ae89d8d716 refactor(mobile): simplify entry list rendering and context management
- Refactored EntryListContentGrid to use direct entry IDs instead of complex masonry item mapping
- Introduced EntryListContext to provide view type context
- Updated EntryGridItem to handle multiple media types and scrolling
- Simplified ViewPagerList to render a single view instead of multiple pages
- Removed unused pager view logic and simplified entry list rendering

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-21 21:48:02 +08:00

9 lines
282 B
TypeScript

import type { FeedViewType } from "@follow/constants"
import { createContext, useContext } from "react"
export const EntryListContextViewContext = createContext<FeedViewType>(null!)
export const useEntryListContextView = () => {
return useContext(EntryListContextViewContext)
}