mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
27 lines
800 B
TypeScript
27 lines
800 B
TypeScript
import { PrimaryLayout } from '../components/templates/PrimaryLayout'
|
|
import { HomeFeedContainer } from '../components/templates/homeFeed/HomeFeedContainer'
|
|
import { VStack } from './../components/elements/LayoutPrimitives'
|
|
import { useRef } from 'react'
|
|
|
|
export default function Home(): JSX.Element {
|
|
return <LoadedContent />
|
|
}
|
|
|
|
function LoadedContent(): JSX.Element {
|
|
const scrollRef = useRef<HTMLDivElement | null>(null)
|
|
|
|
return (
|
|
<PrimaryLayout
|
|
pageMetaDataProps={{
|
|
title: 'Home - Omnivore',
|
|
path: '/home',
|
|
}}
|
|
scrollElementRef={scrollRef}
|
|
pageTestId="home-page-tag"
|
|
>
|
|
<VStack alignment="center" distribution="center" ref={scrollRef}>
|
|
<HomeFeedContainer scrollElementRef={scrollRef} />
|
|
</VStack>
|
|
</PrimaryLayout>
|
|
)
|
|
}
|