diff --git a/src/app/feed/pages/AuthorPage.tsx b/src/app/feed/pages/AuthorPage.tsx
index 31705ec..8be7f0a 100644
--- a/src/app/feed/pages/AuthorPage.tsx
+++ b/src/app/feed/pages/AuthorPage.tsx
@@ -5,6 +5,7 @@ import { useParams } from 'react-router-dom'
import SingleColumnLayout from '../../../layouts/SingleColumnLayout.tsx'
import NavBar from '../../../components/NavBar.tsx'
import { useFeedViewModel } from '../components/FeedView.ts'
+import NavLinkButton from '../../../components/NavLinkButton.tsx'
interface AuthorPageParams {
postsService: PostsService
@@ -23,7 +24,14 @@ export default function AuthorPage({ postsService }: AuthorPageParams) {
const { pages, loadNextPage } = useFeedViewModel(fetchPosts)
return (
- }>
+
+ home
+ logout
+
+ }
+ >
)
diff --git a/src/app/feed/pages/HomePage.tsx b/src/app/feed/pages/HomePage.tsx
index 10105af..3659dae 100644
--- a/src/app/feed/pages/HomePage.tsx
+++ b/src/app/feed/pages/HomePage.tsx
@@ -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 (
- }>
+
+ logout
+
+ }
+ >
diff --git a/src/app/feed/posts/postsService.ts b/src/app/feed/posts/postsService.ts
index 5130a9e..78c90c4 100644
--- a/src/app/feed/posts/postsService.ts
+++ b/src/app/feed/posts/postsService.ts
@@ -42,7 +42,9 @@ export class PostsService {
amount: number | null,
): Promise {
const response = await client.GET('/posts', {
- query: { cursor, amount, username },
+ params: {
+ query: { From: cursor ?? undefined, Amount: amount ?? undefined, Author: username },
+ },
credentials: 'include',
})
diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx
index ac2c8dd..265e525 100644
--- a/src/components/NavBar.tsx
+++ b/src/components/NavBar.tsx
@@ -1,31 +1,9 @@
-import { useUser } from '../app/user/userStore'
-import NavLinkButton from './NavLinkButton'
+import { PropsWithChildren } from 'react'
-export default function NavBar() {
- const { user } = useUser()
-
- const loggedIn = user != null
+type NavBarProps = unknown
+export default function NavBar({ children }: PropsWithChildren) {
return (
-
- )
-}
-
-function LoggedInContent() {
- return (
- <>
- logout
- >
- )
-}
-
-function LoggedOutContent() {
- return (
- <>
- register
- login{' '}
- >
+
)
}
diff --git a/src/index.css b/src/index.css
index 34c2096..85710ec 100644
--- a/src/index.css
+++ b/src/index.css
@@ -6,8 +6,10 @@
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
+}
-
+html {
+ overflow-y: scroll;
}
@layer variables {