- 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>
9 lines
282 B
TypeScript
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)
|
|
}
|