(props: IThreadsPageProps)
| 10 | } |
| 11 | |
| 12 | export function ThreadsPage(props: IThreadsPageProps): JSX.Element { |
| 13 | const { router } = props; |
| 14 | |
| 15 | const pageNumber = (router.query && +router.query.p) || 0; |
| 16 | |
| 17 | return ( |
| 18 | <MainLayout currentUrl={router.pathname}> |
| 19 | <NewsFeedView |
| 20 | currentUrl={router.pathname} |
| 21 | first={30} |
| 22 | newsItems={sampleData.newsItems} |
| 23 | skip={pageNumber * 30} |
| 24 | /> |
| 25 | </MainLayout> |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | export default withDataAndRouter(ThreadsPage); |
nothing calls this directly
no outgoing calls
no test coverage detected