diff --git a/client/src/app/(post)/post/[slug]/page.tsx b/client/src/app/(post)/post/[slug]/page.tsx index 92843ec..480efb7 100644 --- a/client/src/app/(post)/post/[slug]/page.tsx +++ b/client/src/app/(post)/post/[slug]/page.tsx @@ -9,7 +9,7 @@ import { Button } from "~/components/ui/button"; import { FaPlus } from "react-icons/fa6"; import FullPost from "~/components/posts/fullpost"; import Comment from "~/components/comment/comment"; - +import CommentInput from "~/components/comment/commentInput"; function Page({ params }: { params: { slug: string } }) { const { getPost, getComments } = useFetcher(); const { data: postData, error: postError } = useSWR(`getPost/${params.slug}`, getPost); @@ -21,6 +21,7 @@ function Page({ params }: { params: { slug: string } }) { {postData && (
{item.content}
+{item.content}
+Upvotes: {item.upvotesCount}, Downvotes: {item.downvotesCount}
+{item.username}
+Reputation: {item.reputation}
+{item.description}
+{item.content}
+Vote status: {item.voteStatus}, Upvotes: {item.upvotesCount}, Downvotes: {item.downvotesCount}
+{item.content}
+Vote status: {item.voteStatus}, Upvotes: {item.upvotesCount}, Downvotes: {item.downvotesCount}
+No data available.
+ ) + ) : ( +Loading...
+{user?.username}
-Post: 100
-Forums
-{forum.name}
- -- {forum.postsCount} posts -
-{user?.username}
+Post: 100
+Forums
+{forum.name}
+ ++ {forum.postsCount} posts +
+