diff --git a/logic/frontend/web/src/app/logout/page.tsx b/logic/frontend/web/src/app/logout/page.tsx new file mode 100644 index 0000000..9766b1e --- /dev/null +++ b/logic/frontend/web/src/app/logout/page.tsx @@ -0,0 +1,16 @@ +"use client" + +import {useUser} from "@/provider/UserProvider"; +import {useEffect} from "react"; + +export default function Page() { + const {logout} = useUser(); + + useEffect(() => { + logout(); + }, []); + + return ( + <> + ); +} \ No newline at end of file diff --git a/logic/frontend/web/src/app/profile/[slug]/page.tsx b/logic/frontend/web/src/app/profile/[slug]/page.tsx index 5235080..1a72e6b 100644 --- a/logic/frontend/web/src/app/profile/[slug]/page.tsx +++ b/logic/frontend/web/src/app/profile/[slug]/page.tsx @@ -75,6 +75,7 @@ export default function Page({ params }: { params: { slug: string } }) { display: "flex", flexDirection: "column", alignItems: "center", + overflowY: "scroll", }} > @@ -123,13 +124,13 @@ export default function Page({ params }: { params: { slug: string } }) { ) : ( posts.map((post, index) => ( - + {post.title} {post.definition} - {new Date(post.createdOn).toLocaleDateString()} + {post.createdOn}