mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
This moves all scrolling from child divs to the main window. This improves our keyboard handling, as focus will be given to the body element, not the child div when navigating by keyboard commands, so arrow keys and space bar will work after navigating to the reader with the keyboard commands.
24 lines
663 B
TypeScript
24 lines
663 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 {
|
|
return (
|
|
<PrimaryLayout
|
|
pageMetaDataProps={{
|
|
title: 'Home - Omnivore',
|
|
path: '/home',
|
|
}}
|
|
pageTestId="home-page-tag"
|
|
>
|
|
<VStack alignment="center" distribution="center">
|
|
<HomeFeedContainer />
|
|
</VStack>
|
|
</PrimaryLayout>
|
|
)
|
|
}
|