This commit is contained in:
john 2025-05-17 23:53:50 +02:00
parent 36f5eef849
commit dcaccc7ab8
5 changed files with 27 additions and 30 deletions

View file

@ -9,6 +9,7 @@ import { Post } from '../posts/posts.ts'
import { Temporal } from '@js-temporal/polyfill'
import SingleColumnLayout from '../../../layouts/SingleColumnLayout.tsx'
import NavBar from '../../../components/NavBar.tsx'
import NavLinkButton from '../../../components/NavLinkButton.tsx'
interface HomePageProps {
postsService: PostsService
@ -59,7 +60,13 @@ export default function HomePage({ postsService, mediaService }: HomePageProps)
)
return (
<SingleColumnLayout navbar={<NavBar />}>
<SingleColumnLayout
navbar={
<NavBar>
<NavLinkButton to="/logout">logout</NavLinkButton>
</NavBar>
}
>
<main className={`w-full max-w-3xl mx-auto`}>
<NewPostWidget onSubmit={onCreatePost} isSubmitting={isSubmitting} />
<FeedView pages={pages} onLoadMore={loadNextPage} />